summaryrefslogtreecommitdiff
path: root/src/mint
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint')
-rw-r--r--src/mint/taler-mint-httpd_responses.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c
index 4cd5f87ed..e37eea188 100644
--- a/src/mint/taler-mint-httpd_responses.c
+++ b/src/mint/taler-mint-httpd_responses.c
@@ -548,7 +548,13 @@ compile_reserve_history (const struct TALER_MINTDB_ReserveHistory *rh,
break;
}
}
-
+ if (0 == ret)
+ {
+ /* history is empty!? */
+ GNUNET_break (0);
+ json_decref (json_history);
+ return NULL;
+ }
if (GNUNET_SYSERR ==
TALER_amount_subtract (balance,
&deposit_total,