Handle empty options correctly.

This commit is contained in:
nicm 2017-03-08 14:43:40 +00:00
parent 78ca1b0265
commit 41b31fe240

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 == '@') {