aboutsummaryrefslogtreecommitdiff
path: root/src/mint
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-01 09:59:18 +0200
committerChristian Grothoff <christian@grothoff.org>2015-05-01 09:59:18 +0200
commit95f99d32dd433e36e17f7ce7ce335b8187ab39ba (patch)
treeea76913a1073ce7dc2ebf318a32c73743e4a3749 /src/mint
parente5916519372904a16a9ccb9093ac2da1241a73e9 (diff)
minor bugfixes
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,