diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-22 13:48:56 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-22 13:48:56 +0200 |
commit | 21bcc5fa0bb4e2c101fc71d5740934d5914eb480 (patch) | |
tree | 73c83681219894b607b97b8133331ecd0462e04f /src/testing/testing_api_loop.c | |
parent | 3233195d2d6c4733e6c98e754c54902f9c6d657c (diff) | |
download | exchange-21bcc5fa0bb4e2c101fc71d5740934d5914eb480.tar.xz |
-fix wirewatch assertion
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r-- | src/testing/testing_api_loop.c | 5 |
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); |