aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-28 21:39:34 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-28 21:39:34 +0100
commitb409d6a17e6aaf054876c7cc7fc08515d2315bbc (patch)
treeddac964880b6bf1693735bdf9d8ef61835f18ab0
parent28492256a5795ff2f72fbf181c15e84fd0d1dbff (diff)
permit subtraction to result in zero
-rw-r--r--src/exchange/taler-exchange-aggregator.c2
1 files changed, 1 insertions, 1 deletions
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))