aboutsummaryrefslogtreecommitdiff
path: root/src/util/configuration.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r--src/util/configuration.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index faee9e3bf..26beacaff 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -1819,12 +1819,12 @@ GNUNET_CONFIGURATION_load_from (struct GNUNET_CONFIGURATION_Handle *cfg,
1819 * @return a freshly allocated configuration 1819 * @return a freshly allocated configuration
1820 */ 1820 */
1821struct GNUNET_CONFIGURATION_Handle * 1821struct GNUNET_CONFIGURATION_Handle *
1822GNUNET_CONFIGURATION_default(void) 1822GNUNET_CONFIGURATION_default (void)
1823{ 1823{
1824 const struct GNUNET_OS_ProjectData *pd = GNUNET_OS_project_data_get (); 1824 const struct GNUNET_OS_ProjectData *pd = GNUNET_OS_project_data_get ();
1825 const struct GNUNET_OS_ProjectData *dpd = GNUNET_OS_project_data_default (); 1825 const struct GNUNET_OS_ProjectData *dpd = GNUNET_OS_project_data_default ();
1826 1826
1827 GNUNET_OS_init(dpd); 1827 GNUNET_OS_init (dpd);
1828 1828
1829 struct GNUNET_CONFIGURATION_Handle *cfg = GNUNET_CONFIGURATION_create (); 1829 struct GNUNET_CONFIGURATION_Handle *cfg = GNUNET_CONFIGURATION_create ();
1830 const char *xdg = getenv ("XDG_CONFIG_HOME"); 1830 const char *xdg = getenv ("XDG_CONFIG_HOME");
@@ -1835,7 +1835,8 @@ GNUNET_CONFIGURATION_default(void)
1835 else 1835 else
1836 cfgname = GNUNET_strdup (pd->user_config_file); 1836 cfgname = GNUNET_strdup (pd->user_config_file);
1837 1837
1838 if (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg, cfgname)) { 1838 if (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg, cfgname))
1839 {
1839 GNUNET_OS_init (pd); 1840 GNUNET_OS_init (pd);
1840 GNUNET_CONFIGURATION_destroy (cfg); 1841 GNUNET_CONFIGURATION_destroy (cfg);
1841 GNUNET_free (cfgname); 1842 GNUNET_free (cfgname);