aboutsummaryrefslogtreecommitdiff
path: root/src/util/program.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/program.c')
-rw-r--r--src/util/program.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/program.c b/src/util/program.c
index 9e1a83d0b..4e31333e2 100644
--- a/src/util/program.c
+++ b/src/util/program.c
@@ -228,7 +228,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
228 lpfx = GNUNET_strdup (binaryName); 228 lpfx = GNUNET_strdup (binaryName);
229 if (NULL != (spc = strstr (lpfx, " "))) 229 if (NULL != (spc = strstr (lpfx, " ")))
230 *spc = '\0'; 230 *spc = '\0';
231 if ((-1 == 231 if ((GNUNET_OK !=
232 (ret = 232 (ret =
233 GNUNET_GETOPT_run (binaryName, allopts, (unsigned int) argc, argv))) || 233 GNUNET_GETOPT_run (binaryName, allopts, (unsigned int) argc, argv))) ||
234 (GNUNET_OK != GNUNET_log_setup (lpfx, loglev, logfile))) 234 (GNUNET_OK != GNUNET_log_setup (lpfx, loglev, logfile)))
@@ -239,7 +239,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
239 GNUNET_free_non_null (logfile); 239 GNUNET_free_non_null (logfile);
240 GNUNET_free (allopts); 240 GNUNET_free (allopts);
241 GNUNET_free (lpfx); 241 GNUNET_free (lpfx);
242 return GNUNET_SYSERR; 242 return ret;
243 } 243 }
244 (void) GNUNET_CONFIGURATION_load (cfg, cc.cfgfile); 244 (void) GNUNET_CONFIGURATION_load (cfg, cc.cfgfile);
245 GNUNET_free (allopts); 245 GNUNET_free (allopts);