allow empty values in config settings; fixes #3974 (#4208)
Costa Tsaousis committed
Sep 17, 2018 at 01:39 UTC
aa24b3f7163476c2624947e733af2dac29bd9d5b
1 file changed
+2
-4
src/appconfig.c
+2
-4
@@ -494,10 +494,8 @@ int appconfig_load(struct config *root, char *filename, int overwrite_used)
494
error("CONFIG: ignoring line %d of file '%s', name is empty.", line, filename);
495
continue;
496
}
497
- if(!value) {
498
- debug(D_CONFIG, "CONFIG: ignoring line %d of file '%s', value is empty.", line, filename);
499
- continue;
500
- }
497
+
498
+ if(!value) value = "";
499
500
struct config_option *cv = appconfig_option_index_find(co, name, 0);
501