From 850d84a1b6513ddef814c4ebd9f3fad2755e4771 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 5 Jun 2017 18:05:01 +0200 Subject: [PATCH] assert non-NULL --- src/exchange-lib/test_exchange_api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c index c6cecc572..53bfbd19b 100644 --- a/src/exchange-lib/test_exchange_api.c +++ b/src/exchange-lib/test_exchange_api.c @@ -1043,6 +1043,7 @@ reserve_status_cb (void *cls, case OC_PAYBACK: xrel = find_command (is, rel->details.payback.ref); + GNUNET_assert (NULL != xrel); if (0 == strcmp (cmd->details.reserve_status.reserve_reference, xrel->details.reserve_withdraw.reserve_reference)) { @@ -1917,8 +1918,10 @@ payback_cb (void *cls, } withdraw = find_command (is, cmd->details.payback.ref); + GNUNET_assert (NULL != withdraw); reserve = find_command (is, withdraw->details.reserve_withdraw.reserve_reference); + GNUNET_assert (NULL != reserve); GNUNET_CRYPTO_eddsa_key_get_public (&reserve->details.admin_add_incoming.reserve_priv.eddsa_priv, &rp.eddsa_pub); switch (http_status)