about summary refs log tree commit diff
path: root/Src/Zle/compmatch.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-01-09 17:39:44 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-01-09 17:39:44 +0000
commit90f7b1e17337334ffa7c930a42539ae5cc5049e0 (patch)
tree518ef12d45f86f2089d57d1a0d689eb2989ee4c2 /Src/Zle/compmatch.c
parent5750513c004166d4665e63c5a254d85a86efa7c5 (diff)
downloadzsh-90f7b1e17337334ffa7c930a42539ae5cc5049e0.tar.gz
zsh-90f7b1e17337334ffa7c930a42539ae5cc5049e0.tar.xz
zsh-90f7b1e17337334ffa7c930a42539ae5cc5049e0.zip
A test for (size_t)-1 needed to check for (size_t)-2 too.
Diffstat (limited to 'Src/Zle/compmatch.c')
-rw-r--r--Src/Zle/compmatch.c2
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;
 		}