diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-06 20:54:42 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-06 20:54:42 +0200 |
commit | dbab0c658734c14436a89bd7fc76b295cbcf5448 (patch) | |
tree | 45c76147c8da84a4a9911803fca54744aa36725a /src/exchange/taler-exchange-httpd_responses.c | |
parent | 2f715c27f82584cb65855785144877da628fe35c (diff) | |
download | exchange-dbab0c658734c14436a89bd7fc76b295cbcf5448.tar.gz exchange-dbab0c658734c14436a89bd7fc76b295cbcf5448.tar.bz2 exchange-dbab0c658734c14436a89bd7fc76b295cbcf5448.zip |
check return value from TALER_amount_get_zero
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index e461a95c7..1b45a0cc7 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -879,8 +879,9 @@ TEH_RESPONSE_compile_reserve_history (const struct TALER_EXCHANGEDB_ReserveHisto if (0 == (2 & ret)) { /* did not encounter any withdraw operations, set to zero */ - TALER_amount_get_zero (deposit_total.currency, - &withdraw_total); + GNUNET_assert (GNUNET_OK == + TALER_amount_get_zero (deposit_total.currency, + &withdraw_total)); } if (GNUNET_SYSERR == TALER_amount_subtract (balance, |