diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-11 14:25:42 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-11 14:25:42 +0200 |
commit | 9ff580fe7bd541ff22096b9e96827fdf84a96cab (patch) | |
tree | b40b7375d9a817a4985ded3bbefa4071f94fe7d4 /src/mintdb/test_mintdb.c | |
parent | 998a2f3aa6b394407e9c7358e405ff23ab6159de (diff) |
fixing #3820/#3826
Diffstat (limited to 'src/mintdb/test_mintdb.c')
-rw-r--r-- | src/mintdb/test_mintdb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mintdb/test_mintdb.c b/src/mintdb/test_mintdb.c index 56f5636d..ed6986cc 100644 --- a/src/mintdb/test_mintdb.c +++ b/src/mintdb/test_mintdb.c @@ -388,6 +388,7 @@ run (void *cls, } FAILIF (3 != cnt); /* Tests for deposits */ + memset (&deposit, 0, sizeof (deposit)); RND_BLK (&deposit.coin.coin_pub); deposit.coin.denom_pub = dkp->pub; deposit.coin.denom_sig = cbc.sig; @@ -400,6 +401,8 @@ run (void *cls, deposit.transaction_id = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, UINT64_MAX); deposit.amount_with_fee = amount; + GNUNET_assert (GNUNET_OK == + TALER_amount_get_zero (CURRENCY, &deposit.deposit_fee)); FAILIF (GNUNET_OK != plugin->insert_deposit (plugin->cls, session, &deposit)); |