summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_tip-query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_tip-query.c')
-rw-r--r--src/backend/taler-merchant-httpd_tip-query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_tip-query.c b/src/backend/taler-merchant-httpd_tip-query.c
index 12198470..9c9b5538 100644
--- a/src/backend/taler-merchant-httpd_tip-query.c
+++ b/src/backend/taler-merchant-httpd_tip-query.c
@@ -95,7 +95,7 @@ generate_final_response (struct TipQueryContext *tqc)
GNUNET_CRYPTO_eddsa_key_get_public (&tqc->ctr.reserve_priv.eddsa_priv,
&reserve_pub);
- if (GNUNET_SYSERR ==
+ if (0 >
TALER_amount_subtract (&amount_available,
&tqc->ctr.amount_deposited,
&tqc->ctr.amount_withdrawn))