From 4622e326bd5be7cc9ad99131de8f8f897af48f13 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 14 Oct 2008 22:09:11 +0000 Subject: 25897: remove small bit of dead code in cfp_opt_pats. --- Src/Zle/computil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 6c82d010e..0801e0c2d 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -4351,12 +4351,12 @@ cfp_opt_pats(char **pats, char *matcher) for (s = add; *s && !idigit(*s); s++); *s = '\0'; } else if (*q == '[') { - int not, first = 1; + int not; char *x = ++q; if ((not = (*x == '!' || *x == '^'))) x++; - for (; *x && (first || *x != ']'); x++) { + for (; *x; x++) { if (x[1] == '-' && x[2]) { char c1 = *x, c2 = x[2]; -- cgit 1.4.1