- complain about empty values in config file

This commit is contained in:
Thomas Ries
2004-05-09 12:43:03 +00:00
parent 1b54047ac3
commit ea6cfd914a

View File

@@ -211,7 +211,12 @@ static int parse_config (FILE *configfile) {
DEBUGC(DBCLASS_CONFIG,"got argument:\"%s\"",ptr);
num=0;
if (strlen(ptr)) switch (configoptions[k].type) {
if (strlen(ptr) <= 0) {
WARN("empty argument in config file, line:\"%s\"",buff);
break;
}
switch (configoptions[k].type) {
//
// Integer4