Handle empty options correctly.

pull/752/merge
nicm 2017-03-08 14:43:40 +00:00
parent 78ca1b0265
commit 41b31fe240
1 changed files with 2 additions and 0 deletions

View File

@ -427,6 +427,8 @@ options_match(const char *s, int *idx, int* ambiguous)
size_t namelen;
name = options_parse(s, idx);
if (name == NULL)
return (NULL);
namelen = strlen(name);
if (*name == '@') {