summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_withdraw.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-08 08:54:12 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-08 08:54:12 +0100
commitb7f0d636e9ea885422447d11d3c8c6ea33a16f4e (patch)
treeaeb3dca2a2f1fb4280bda9f1e2a17a60c41c3e08 /src/testing/testing_api_cmd_withdraw.c
parentd9690fb08711847957a4ad101e24d453d843253a (diff)
downloadexchange-b7f0d636e9ea885422447d11d3c8c6ea33a16f4e.tar.gz
exchange-b7f0d636e9ea885422447d11d3c8c6ea33a16f4e.tar.bz2
exchange-b7f0d636e9ea885422447d11d3c8c6ea33a16f4e.zip
-fix NPE
Diffstat (limited to 'src/testing/testing_api_cmd_withdraw.c')
-rw-r--r--src/testing/testing_api_cmd_withdraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c
index ecb1a6eb6..414e7cead 100644
--- a/src/testing/testing_api_cmd_withdraw.c
+++ b/src/testing/testing_api_cmd_withdraw.c
@@ -358,6 +358,7 @@ withdraw_run (void *cls,
const struct TALER_EXCHANGE_DenomPublicKey *dpk;
(void) cmd;
+ ws->is = is;
create_reserve
= TALER_TESTING_interpreter_lookup_command (
is,
@@ -378,7 +379,7 @@ withdraw_run (void *cls,
}
if (NULL == ws->exchange_url)
ws->exchange_url
- = GNUNET_strdup (TALER_EXCHANGE_get_base_url (ws->is->exchange));
+ = GNUNET_strdup (TALER_EXCHANGE_get_base_url (is->exchange));
ws->reserve_priv = *rp;
GNUNET_CRYPTO_eddsa_key_get_public (&ws->reserve_priv.eddsa_priv,
&ws->reserve_pub.eddsa_pub);
@@ -411,7 +412,6 @@ withdraw_run (void *cls,
TALER_planchet_setup_random (&ws->ps);
ws->ps.coin_priv = *coin_priv;
}
- ws->is = is;
if (NULL == ws->pk)
{
dpk = TALER_TESTING_find_pk (TALER_EXCHANGE_get_keys (is->exchange),