more return value checks on TALER_amount_get_zero

This commit is contained in:
Christian Grothoff 2017-10-06 21:21:20 +02:00
parent 800c54b19e
commit 7f37c2ae00
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1616,16 +1616,21 @@ check_transaction_history (const struct TALER_CoinSpendPublicKeyP *coin_pub,
TALER_B2S (coin_pub));
GNUNET_assert (NULL != tl_head);
GNUNET_assert (GNUNET_OK ==
TALER_amount_get_zero (currency,
&expenditures);
&expenditures));
GNUNET_assert (GNUNET_OK ==
TALER_amount_get_zero (currency,
&refunds);
&refunds));
GNUNET_assert (GNUNET_OK ==
TALER_amount_get_zero (currency,
merchant_gain);
merchant_gain));
GNUNET_assert (GNUNET_OK ==
TALER_amount_get_zero (currency,
merchant_fees);
merchant_fees));
GNUNET_assert (GNUNET_OK ==
TALER_amount_get_zero (currency,
&merchant_loss);
&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,