diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-21 20:58:43 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-21 20:58:43 +0100 |
commit | c420c340f2b5c9c3b4fe8fa94cc4258ae0d85517 (patch) | |
tree | 76f387edad176bbb351b8836bbda1a402b837a14 | |
parent | 67818b31fba43f4ac9b7a2d1ff0eec42011faf50 (diff) | |
download | exchange-c420c340f2b5c9c3b4fe8fa94cc4258ae0d85517.tar.xz |
fix segfault
-rw-r--r-- | src/exchange-lib/testing_api_cmd_serialize_keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchange-lib/testing_api_cmd_serialize_keys.c b/src/exchange-lib/testing_api_cmd_serialize_keys.c index c63147a7e..852c42116 100644 --- a/src/exchange-lib/testing_api_cmd_serialize_keys.c +++ b/src/exchange-lib/testing_api_cmd_serialize_keys.c @@ -66,7 +66,8 @@ serialize_keys_run (void *cls, if (NULL == sks->keys) TALER_TESTING_interpreter_fail (is); - sks->exchange_url = TALER_EXCHANGE_get_base_url (is->exchange); + sks->exchange_url = GNUNET_strdup + (TALER_EXCHANGE_get_base_url (is->exchange)); TALER_EXCHANGE_disconnect (is->exchange); is->exchange = NULL; TALER_TESTING_interpreter_next (is); |