empty string is no good

This commit is contained in:
Albert Cahalan 2009-11-21 04:58:00 +00:00
parent e69985db3b
commit 034d5c9fb9

View file

@ -216,7 +216,7 @@ void parse_one_option(struct cfginfo *restrict tmpcfg, const char *str, const ch
exit(51); exit(51);
} }
} }
else if(!opt) else if(!opt || !*opt)
{ {
if(src) if(src)
printf("Option '%s' in config file '%s' needs a value\n",str,src); printf("Option '%s' in config file '%s' needs a value\n",str,src);