more return value checks on TALER_amount_get_zero
This commit is contained in:
parent
800c54b19e
commit
7f37c2ae00
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user