diff --git a/options.c b/options.c index 4de25937..4cd3ea10 100644 --- a/options.c +++ b/options.c @@ -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 == '@') {