summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-03 00:42:32 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-03 00:42:32 +0200
commit69c1ca4d2363a921fc16b7579dce86e0cb29d3b1 (patch)
treed211b05c3735204f620037840dd6f079f2470f9c /src/exchangedb
parent8d26ab35e0d2de1e3186377593bdee3d20a6fe15 (diff)
downloadexchange-69c1ca4d2363a921fc16b7579dce86e0cb29d3b1.tar.gz
exchange-69c1ca4d2363a921fc16b7579dce86e0cb29d3b1.tar.bz2
exchange-69c1ca4d2363a921fc16b7579dce86e0cb29d3b1.zip
check return value, always
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/test_exchangedb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 66ccb4c7..9e8d2965 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -362,14 +362,13 @@ kcs (void *cls,
uint8_t kyc_checked,
uint64_t merchant_serial_id)
{
-
struct TALER_EXCHANGEDB_Session *session = cls;
struct TALER_Amount amount;
struct TALER_Amount sum;
-
- TALER_amount_get_zero (CURRENCY,
- &amount);
+ GNUNET_assert (GNUNET_OK ==
+ TALER_amount_get_zero (CURRENCY,
+ &amount));
amount.value = 30;
FAILIF
(GNUNET_OK != plugin->insert_kyc_event (NULL,