diff options
Diffstat (limited to 'src/util/program.c')
-rw-r--r-- | src/util/program.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/program.c b/src/util/program.c index d89b65a39..b09215343 100644 --- a/src/util/program.c +++ b/src/util/program.c | |||
@@ -210,7 +210,7 @@ GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName, | |||
210 | cnt += sizeof (defoptions) / sizeof (struct GNUNET_GETOPT_CommandLineOption); | 210 | cnt += sizeof (defoptions) / sizeof (struct GNUNET_GETOPT_CommandLineOption); |
211 | qsort (allopts, cnt, sizeof (struct GNUNET_GETOPT_CommandLineOption), | 211 | qsort (allopts, cnt, sizeof (struct GNUNET_GETOPT_CommandLineOption), |
212 | &cmd_sorter); | 212 | &cmd_sorter); |
213 | loglev = GNUNET_strdup ("WARNING"); | 213 | loglev = NULL; |
214 | cc.cfgfile = GNUNET_strdup (GNUNET_DEFAULT_USER_CONFIG_FILE); | 214 | cc.cfgfile = GNUNET_strdup (GNUNET_DEFAULT_USER_CONFIG_FILE); |
215 | lpfx = GNUNET_strdup (binaryName); | 215 | lpfx = GNUNET_strdup (binaryName); |
216 | if (NULL != (spc = strstr (lpfx, " "))) | 216 | if (NULL != (spc = strstr (lpfx, " "))) |
@@ -248,7 +248,7 @@ GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName, | |||
248 | /* clean up */ | 248 | /* clean up */ |
249 | GNUNET_CONFIGURATION_destroy (cfg); | 249 | GNUNET_CONFIGURATION_destroy (cfg); |
250 | GNUNET_free_non_null (cc.cfgfile); | 250 | GNUNET_free_non_null (cc.cfgfile); |
251 | GNUNET_free (loglev); | 251 | GNUNET_free_non_null (loglev); |
252 | GNUNET_free_non_null (logfile); | 252 | GNUNET_free_non_null (logfile); |
253 | return GNUNET_OK; | 253 | return GNUNET_OK; |
254 | } | 254 | } |