empty string is no good
This commit is contained in:
parent
e69985db3b
commit
034d5c9fb9
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ void parse_one_option(struct cfginfo *restrict tmpcfg, const char *str, const ch
|
|||
exit(51);
|
||||
}
|
||||
}
|
||||
else if(!opt)
|
||||
else if(!opt || !*opt)
|
||||
{
|
||||
if(src)
|
||||
printf("Option '%s' in config file '%s' needs a value\n",str,src);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue