aboutsummaryrefslogtreecommitdiff
path: root/src/util/helper.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-11-05 15:54:40 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-11-05 15:54:40 +0000
commit6aa52dfc22bdd6590d6288696648a48ddaf79294 (patch)
treef2ba46d761bb4fc1bcc784b590e77882666f93f2 /src/util/helper.c
parent60920228fd7344ededc9f0711f2b47ddffa02313 (diff)
downloadgnunet-6aa52dfc22bdd6590d6288696648a48ddaf79294.tar.gz
gnunet-6aa52dfc22bdd6590d6288696648a48ddaf79294.zip
fix
Diffstat (limited to 'src/util/helper.c')
-rw-r--r--src/util/helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/helper.c b/src/util/helper.c
index 372f8407e..0810fe180 100644
--- a/src/util/helper.c
+++ b/src/util/helper.c
@@ -420,8 +420,7 @@ GNUNET_HELPER_start (int with_control_pipe,
420 h->binary_name = GNUNET_OS_get_libexec_binary_path (binary_name); 420 h->binary_name = GNUNET_OS_get_libexec_binary_path (binary_name);
421 else 421 else
422 h->binary_name = strdup (binary_name); 422 h->binary_name = strdup (binary_name);
423 for (c = 0; NULL != binary_argv[c]; c++) 423 for (c = 0; NULL != binary_argv[c]; c++);
424 c++;
425 h->binary_argv = GNUNET_malloc (sizeof (char *) * (c + 1)); 424 h->binary_argv = GNUNET_malloc (sizeof (char *) * (c + 1));
426 for (c = 0; NULL != binary_argv[c]; c++) 425 for (c = 0; NULL != binary_argv[c]; c++)
427 h->binary_argv[c] = GNUNET_strdup (binary_argv[c]); 426 h->binary_argv[c] = GNUNET_strdup (binary_argv[c]);