From dbab0c658734c14436a89bd7fc76b295cbcf5448 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 6 Oct 2017 20:54:42 +0200 Subject: check return value from TALER_amount_get_zero --- src/exchange/taler-exchange-httpd_responses.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_responses.c') diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index e461a95c..1b45a0cc 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, -- cgit v1.2.3