diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2018-01-29 13:01:43 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2018-01-31 01:17:35 +0100 |
commit | 19abad095caafb2279f8aeb5d39cd038dcece938 (patch) | |
tree | c4ebd985b289d26379cf0a58c129a65a44d2d156 /tests/unit | |
parent | 2b50e56343e1ac805f10ca17935716b5c70c44b1 (diff) | |
download | curl-19abad095caafb2279f8aeb5d39cd038dcece938.tar.gz |
fnmatch: do not match the empty string with a character set
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/unit1307.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit1307.c b/tests/unit/unit1307.c index 266eed392..eff5edebc 100644 --- a/tests/unit/unit1307.c +++ b/tests/unit/unit1307.c @@ -97,8 +97,8 @@ static const struct testcase tests[] = { { "*[^a].t?t", "a.txt", NOMATCH }, { "*[^a].t?t", "ba.txt", NOMATCH }, { "*[^a].t?t", "ab.txt", MATCH }, - { "*[^a]", "", MATCH }, - { "[!ÿ]", "", MATCH }, + { "*[^a]", "", NOMATCH }, + { "[!ÿ]", "", NOMATCH }, { "[!?*[]", "?", NOMATCH }, { "[!!]", "!", NOMATCH }, { "[!!]", "x", MATCH }, |