summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_db.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-04-10 16:37:08 +0200
committerChristian Grothoff <christian@grothoff.org>2017-04-10 16:37:08 +0200
commit368b9f8fcbd33cfc3106b2683a376422275a3c23 (patch)
tree5dd69d119d69a035fd271481f2e51782f18f9e4d /src/exchange/taler-exchange-httpd_db.c
parent2684327176f5e4aab35d1c25b32b37a4c065fadd (diff)
downloadexchange-368b9f8fcbd33cfc3106b2683a376422275a3c23.tar.gz
exchange-368b9f8fcbd33cfc3106b2683a376422275a3c23.tar.bz2
exchange-368b9f8fcbd33cfc3106b2683a376422275a3c23.zip
add test case for #3887
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.c')
-rw-r--r--src/exchange/taler-exchange-httpd_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c
index 191e2a4b6..57be19708 100644
--- a/src/exchange/taler-exchange-httpd_db.c
+++ b/src/exchange/taler-exchange-httpd_db.c
@@ -192,7 +192,7 @@ calculate_transaction_list_totals (struct TALER_EXCHANGEDB_TransactionList *tl,
}
}
/* spent = spent - refunded */
- if (GNUNET_OK !=
+ if (GNUNET_SYSERR ==
TALER_amount_subtract (&spent,
&spent,
&refunded))