From b409d6a17e6aaf054876c7cc7fc08515d2315bbc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Mar 2020 21:39:34 +0100 Subject: permit subtraction to result in zero --- src/exchange/taler-exchange-aggregator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c index 0ec3b16a1..63a72c79e 100644 --- a/src/exchange/taler-exchange-aggregator.c +++ b/src/exchange/taler-exchange-aggregator.c @@ -312,7 +312,7 @@ refund_by_coin_cb (void *cls, "Aggregator subtracts applicable refund of amount %s\n", TALER_amount2s (amount_with_fee)); aux->have_refund = GNUNET_YES; - if (GNUNET_OK != + if (GNUNET_SYSERR == TALER_amount_subtract (&aux->total_amount, &aux->total_amount, amount_with_fee)) -- cgit v1.2.3