gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r30142 - gnunet-gtk/src/lib


From: gnunet
Subject: [GNUnet-SVN] r30142 - gnunet-gtk/src/lib
Date: Fri, 11 Oct 2013 15:35:27 +0200

Author: grothoff
Date: 2013-10-11 15:35:26 +0200 (Fri, 11 Oct 2013)
New Revision: 30142

Modified:
   gnunet-gtk/src/lib/eventloop.c
Log:
-only load configuration if file exists, and then use 'parse' to avoid 
re-parsing defaults

Modified: gnunet-gtk/src/lib/eventloop.c
===================================================================
--- gnunet-gtk/src/lib/eventloop.c      2013-10-11 13:30:43 UTC (rev 30141)
+++ gnunet-gtk/src/lib/eventloop.c      2013-10-11 13:35:26 UTC (rev 30142)
@@ -892,7 +892,9 @@
   GNUNET_free (ipath2);
   GNUNET_free (ipath);
 
-  (void) GNUNET_CONFIGURATION_load (gcfg, cfgfile);
+  if (GNUNET_YES ==
+      GNUNET_DISK_file_test (cfgfile))
+    (void) GNUNET_CONFIGURATION_parse (gcfg, cfgfile);
   ml->rs = GNUNET_NETWORK_fdset_create ();
   ml->ws = GNUNET_NETWORK_fdset_create ();
   ml->gml = g_main_loop_new (NULL, TRUE);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]