From: Christian Grothoff Date: Wed, 25 Dec 2019 12:45:54 +0000 (+0100) Subject: use static array X-Git-Tag: v0.12.2~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e8879b468c885bc0312d279368a9f2b85f741d41;p=oweals%2Fgnunet.git use static array --- 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"))