diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2006-01-09 17:39:44 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-01-09 17:39:44 +0000 |
commit | 90f7b1e17337334ffa7c930a42539ae5cc5049e0 (patch) | |
tree | 518ef12d45f86f2089d57d1a0d689eb2989ee4c2 | |
parent | 5750513c004166d4665e63c5a254d85a86efa7c5 (diff) | |
download | zsh-90f7b1e17337334ffa7c930a42539ae5cc5049e0.tar.gz zsh-90f7b1e17337334ffa7c930a42539ae5cc5049e0.tar.xz zsh-90f7b1e17337334ffa7c930a42539ae5cc5049e0.zip |
A test for (size_t)-1 needed to check for (size_t)-2 too.
-rw-r--r-- | Src/Zle/compmatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c index cd77450cd..ec856041f 100644 --- a/Src/Zle/compmatch.c +++ b/Src/Zle/compmatch.c @@ -1660,7 +1660,7 @@ sub_match(Cmdata md, char *str, int len, int sfx) if (cnt != (size_t)-2) break; } - if (cnt == (size_t)-1) { + if (cnt == (size_t)-1 || cnt == (size_t)-2) { /* not a valid character, give up test */ break; } |