summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_reserve_withdraw.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-06 20:54:42 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-06 20:54:42 +0200
commitdbab0c658734c14436a89bd7fc76b295cbcf5448 (patch)
tree45c76147c8da84a4a9911803fca54744aa36725a /src/exchange/taler-exchange-httpd_reserve_withdraw.c
parent2f715c27f82584cb65855785144877da628fe35c (diff)
downloadexchange-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_reserve_withdraw.c')
-rw-r--r--src/exchange/taler-exchange-httpd_reserve_withdraw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_reserve_withdraw.c b/src/exchange/taler-exchange-httpd_reserve_withdraw.c
index 4dad473b3..c410cea20 100644
--- a/src/exchange/taler-exchange-httpd_reserve_withdraw.c
+++ b/src/exchange/taler-exchange-httpd_reserve_withdraw.c
@@ -309,8 +309,9 @@ withdraw_transaction (void *cls,
if (0 == (res & 2))
{
/* 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));
}
/* All reserve balances should be non-negative */
if (GNUNET_SYSERR ==