summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_loop.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-22 13:48:56 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-22 13:48:56 +0200
commit21bcc5fa0bb4e2c101fc71d5740934d5914eb480 (patch)
tree73c83681219894b607b97b8133331ecd0462e04f /src/testing/testing_api_loop.c
parent3233195d2d6c4733e6c98e754c54902f9c6d657c (diff)
downloadexchange-21bcc5fa0bb4e2c101fc71d5740934d5914eb480.tar.gz
exchange-21bcc5fa0bb4e2c101fc71d5740934d5914eb480.tar.bz2
exchange-21bcc5fa0bb4e2c101fc71d5740934d5914eb480.zip
-fix wirewatch assertion
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r--src/testing/testing_api_loop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index 1ea1d5a26..190e20928 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -449,8 +449,9 @@ TALER_TESTING_run2 (struct TALER_TESTING_Interpreter *is,
/* get the number of commands */
for (i = 0; NULL != commands[i].label; i++)
;
- is->commands = GNUNET_new_array (i + 1,
- struct TALER_TESTING_Command);
+ is->commands = GNUNET_malloc_large ( (i + 1)
+ * sizeof (struct TALER_TESTING_Command));
+ GNUNET_assert (NULL != is->commands);
memcpy (is->commands,
commands,
sizeof (struct TALER_TESTING_Command) * i);