fixing #1781
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Sep 2011 21:34:08 +0000 (21:34 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Sep 2011 21:34:08 +0000 (21:34 +0000)
src/util/program.c

index b64e9ae30a401bb398442c5c35f3190185d0d07e..d89b65a3993d41da4cea31f912a0869c8b7c228f 100644 (file)
@@ -218,8 +218,7 @@ GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName,
   if ((-1 ==
        (ret =
         GNUNET_GETOPT_run (binaryName, allopts, (unsigned int) argc, argv))) ||
-      ((GNUNET_OK != GNUNET_log_setup (lpfx, loglev, logfile)) ||
-       (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg, cc.cfgfile))))
+      (GNUNET_OK != GNUNET_log_setup (lpfx, loglev, logfile)) )
   {
     GNUNET_CONFIGURATION_destroy (cfg);
     GNUNET_free_non_null (cc.cfgfile);
@@ -229,6 +228,7 @@ GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName,
     GNUNET_free (lpfx);
     return GNUNET_SYSERR;
   }
+  (void) GNUNET_CONFIGURATION_load (cfg, cc.cfgfile);
   GNUNET_free (allopts);
   GNUNET_free (lpfx);
   if (GNUNET_OK ==