From 95f99d32dd433e36e17f7ce7ce335b8187ab39ba Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 1 May 2015 09:59:18 +0200 Subject: minor bugfixes --- src/mint/taler-mint-httpd_responses.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mint/taler-mint-httpd_responses.c') diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index 4cd5f87e..e37eea18 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, -- cgit v1.2.3