aboutsummaryrefslogtreecommitdiff
path: root/src/util/configuration.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-15 09:39:23 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-15 09:39:23 +0000
commit4ee43c08b4b1749ae70eec1bb0dea9eb4c67f6da (patch)
tree892463c83d3d31e4a6d6cd33c1f00fdba372310f /src/util/configuration.c
parentcacbf3f6aecbba4e3f0aebc77698df88215ac9fd (diff)
downloadgnunet-4ee43c08b4b1749ae70eec1bb0dea9eb4c67f6da.tar.gz
gnunet-4ee43c08b4b1749ae70eec1bb0dea9eb4c67f6da.zip
better defaults, nicer error msgs:
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r--src/util/configuration.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index 41eeeb461..167fd375a 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -1140,10 +1140,18 @@ GNUNET_CONFIGURATION_load (struct GNUNET_CONFIGURATION_Handle *cfg,
1140 (!((filename == NULL) || 1140 (!((filename == NULL) ||
1141 (GNUNET_OK == GNUNET_CONFIGURATION_parse (cfg, filename))))) 1141 (GNUNET_OK == GNUNET_CONFIGURATION_parse (cfg, filename)))))
1142 { 1142 {
1143 GNUNET_free (baseconfig); 1143 GNUNET_free (baseconfig);
1144 return GNUNET_SYSERR; 1144 return GNUNET_SYSERR;
1145 } 1145 }
1146 GNUNET_free (baseconfig); 1146 GNUNET_free (baseconfig);
1147 if ( ((GNUNET_YES != GNUNET_CONFIGURATION_have_value (cfg,
1148 "PATHS",
1149 "DEFAULTCONFIG"))) &&
1150 (filename != NULL) )
1151 GNUNET_CONFIGURATION_set_value_string (cfg,
1152 "PATHS",
1153 "DEFAULTCONFIG",
1154 filename);
1147 if ((GNUNET_YES == GNUNET_CONFIGURATION_have_value (cfg, 1155 if ((GNUNET_YES == GNUNET_CONFIGURATION_have_value (cfg,
1148 "TESTING", 1156 "TESTING",
1149 "WEAKRANDOM")) && 1157 "WEAKRANDOM")) &&