summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-06 21:21:20 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-06 21:21:20 +0200
commit7f37c2ae00cb6b51f347c3a7520bb0a8cd493a13 (patch)
tree89ff5b5c94ac1dcdca7575f46c6b74636c95b0dd
parent800c54b19e9dd705a18e39e090d6227614b34f58 (diff)
downloadexchange-7f37c2ae00cb6b51f347c3a7520bb0a8cd493a13.tar.gz
exchange-7f37c2ae00cb6b51f347c3a7520bb0a8cd493a13.tar.bz2
exchange-7f37c2ae00cb6b51f347c3a7520bb0a8cd493a13.zip
more return value checks on TALER_amount_get_zero
-rw-r--r--src/auditor/taler-auditor.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 1eff72694..bf8bd97b5 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -1616,16 +1616,21 @@ check_transaction_history (const struct TALER_CoinSpendPublicKeyP *coin_pub,
TALER_B2S (coin_pub));
GNUNET_assert (NULL != tl_head);
- TALER_amount_get_zero (currency,
- &expenditures);
- TALER_amount_get_zero (currency,
- &refunds);
- TALER_amount_get_zero (currency,
- merchant_gain);
- TALER_amount_get_zero (currency,
- merchant_fees);
- TALER_amount_get_zero (currency,
- &merchant_loss);
+ GNUNET_assert (GNUNET_OK ==
+ TALER_amount_get_zero (currency,
+ &expenditures));
+ GNUNET_assert (GNUNET_OK ==
+ TALER_amount_get_zero (currency,
+ &refunds));
+ GNUNET_assert (GNUNET_OK ==
+ TALER_amount_get_zero (currency,
+ merchant_gain));
+ GNUNET_assert (GNUNET_OK ==
+ TALER_amount_get_zero (currency,
+ merchant_fees));
+ GNUNET_assert (GNUNET_OK ==
+ TALER_amount_get_zero (currency,
+ &merchant_loss));
/* Go over transaction history to compute totals; note that we do not
know the order, so instead of subtracting we compute positive
(deposit, melt) and negative (refund) values separately here,