From ea6cfd914aa2c333c7ea590b75f2f8047914cd3f Mon Sep 17 00:00:00 2001 From: Thomas Ries Date: Sun, 9 May 2004 12:43:03 +0000 Subject: [PATCH] - complain about empty values in config file --- src/readconf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/readconf.c b/src/readconf.c index 33daa6f..9761f55 100644 --- a/src/readconf.c +++ b/src/readconf.c @@ -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