From e8879b468c885bc0312d279368a9f2b85f741d41 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 25 Dec 2019 13:45:54 +0100 Subject: use static array --- src/transport/test_communicator_basic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/transport') diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c index 3ae4cf12f..a17767d07 100644 --- a/src/transport/test_communicator_basic.c +++ b/src/transport/test_communicator_basic.c @@ -54,7 +54,7 @@ GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_hs[NUM_PEERS]; static struct GNUNET_CONFIGURATION_Handle *cfg_peers[NUM_PEERS]; -static char **cfg_peers_name; +static char *cfg_peers_name[NUM_PEERS]; static int ret; @@ -489,8 +489,6 @@ main (int argc, communicator_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); GNUNET_asprintf (&communicator_binary, "gnunet-communicator-%s", communicator_name); - cfg_peers_name = GNUNET_new_array (NUM_PEERS, - char *); if (GNUNET_OK != GNUNET_log_setup ("test_communicator_basic", "DEBUG", "test_communicator_basic.log")) -- cgit v1.2.3