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));
|
TALER_B2S (coin_pub));
|
||||||
|
|
||||||
GNUNET_assert (NULL != tl_head);
|
GNUNET_assert (NULL != tl_head);
|
||||||
TALER_amount_get_zero (currency,
|
GNUNET_assert (GNUNET_OK ==
|
||||||
&expenditures);
|
TALER_amount_get_zero (currency,
|
||||||
TALER_amount_get_zero (currency,
|
&expenditures));
|
||||||
&refunds);
|
GNUNET_assert (GNUNET_OK ==
|
||||||
TALER_amount_get_zero (currency,
|
TALER_amount_get_zero (currency,
|
||||||
merchant_gain);
|
&refunds));
|
||||||
TALER_amount_get_zero (currency,
|
GNUNET_assert (GNUNET_OK ==
|
||||||
merchant_fees);
|
TALER_amount_get_zero (currency,
|
||||||
TALER_amount_get_zero (currency,
|
merchant_gain));
|
||||||
&merchant_loss);
|
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
|
/* Go over transaction history to compute totals; note that we do not
|
||||||
know the order, so instead of subtracting we compute positive
|
know the order, so instead of subtracting we compute positive
|
||||||
(deposit, melt) and negative (refund) values separately here,
|
(deposit, melt) and negative (refund) values separately here,
|
||||||
|
Loading…
Reference in New Issue
Block a user