diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-05 21:30:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-05 21:30:55 +0000 |
commit | 271c74ea7c1557ed271e6d478907b4e4b7841f38 (patch) | |
tree | a33f61c9a5b526d0ec392dd96a26f713473eae5e /src/testing/test_testing_topology.c | |
parent | ec75e270527f12b2003ebece61ede7c8a4db29c0 (diff) | |
download | gnunet-271c74ea7c1557ed271e6d478907b4e4b7841f38.tar.gz gnunet-271c74ea7c1557ed271e6d478907b4e4b7841f38.zip |
nicer
Diffstat (limited to 'src/testing/test_testing_topology.c')
-rw-r--r-- | src/testing/test_testing_topology.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testing/test_testing_topology.c b/src/testing/test_testing_topology.c index 426e9a223..7360ab943 100644 --- a/src/testing/test_testing_topology.c +++ b/src/testing/test_testing_topology.c | |||
@@ -1241,6 +1241,7 @@ main (int argc, char *argv[]) | |||
1241 | int ret; | 1241 | int ret; |
1242 | char *binary_start_pos; | 1242 | char *binary_start_pos; |
1243 | char *our_binary_name; | 1243 | char *our_binary_name; |
1244 | char *dotexe; | ||
1244 | 1245 | ||
1245 | binary_start_pos = strchr (argv[0], '/'); | 1246 | binary_start_pos = strchr (argv[0], '/'); |
1246 | GNUNET_assert (binary_start_pos != NULL); | 1247 | GNUNET_assert (binary_start_pos != NULL); |
@@ -1251,9 +1252,8 @@ main (int argc, char *argv[]) | |||
1251 | GNUNET_assert (topology_string != NULL); | 1252 | GNUNET_assert (topology_string != NULL); |
1252 | topology_string++; | 1253 | topology_string++; |
1253 | topology_string = GNUNET_strdup (topology_string); | 1254 | topology_string = GNUNET_strdup (topology_string); |
1254 | if (strstr (topology_string, ".exe")) | 1255 | if (NULL != (dotexe = strstr (topology_string, ".exe"))) |
1255 | topology_string[strstr (topology_string, ".exe") - topology_string] = 0; | 1256 | dotexe[0] = '\0'; |
1256 | |||
1257 | GNUNET_asprintf (&our_binary_name, "test-testing-topology_%s", | 1257 | GNUNET_asprintf (&our_binary_name, "test-testing-topology_%s", |
1258 | topology_string); | 1258 | topology_string); |
1259 | GNUNET_asprintf (&dotOutFileName, "topology_%s.dot", topology_string); | 1259 | GNUNET_asprintf (&dotOutFileName, "topology_%s.dot", topology_string); |