From 21bcc5fa0bb4e2c101fc71d5740934d5914eb480 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 22 May 2022 13:48:56 +0200 Subject: -fix wirewatch assertion --- src/testing/testing_api_loop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/testing/testing_api_loop.c') diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index 1ea1d5a2..190e2092 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); -- cgit v1.2.3