diff options
author | nicm <nicm> | 2017-01-18 08:40:50 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-01-18 08:40:50 +0000 |
commit | 373541104b745f58a5d6eaba81444cf1ccb0e595 (patch) | |
tree | 7bf2e6ab4c5b4e388af6d41f307e3d6bc0c75868 /options.c | |
parent | 6b6b0e91d0e3ee5d92f67f383172037bf1348880 (diff) |
options_match needs to explicitly check for user options.
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -403,6 +403,12 @@ options_match(const char *s, int *idx, int* ambiguous) name = options_parse(s, idx); namelen = strlen(name); + *idx = -1; + if (*name == '@') { + *ambiguous = 0; + return (xstrdup(name)); + } + found = NULL; for (oe = options_table; oe->name != NULL; oe++) { if (strcmp(oe->name, name) == 0) { |