Add missing pair of braces introduced with character class support.

This commit is contained in:
Todd C. Miller
2009-02-18 15:53:38 +00:00
parent dd56fbadb4
commit a9caa43805

3
glob.c
View File

@@ -814,7 +814,7 @@ match(name, pat, patend)
return(0);
if ((negate_range = ((*pat & M_MASK) == M_NOT)) != EOS)
++pat;
while (((c = *pat++) & M_MASK) != M_END)
while (((c = *pat++) & M_MASK) != M_END) {
if ((c & M_MASK) == M_CLASS) {
int idx = *pat & M_MASK;
if (idx < NCCLASSES &&
@@ -828,6 +828,7 @@ match(name, pat, patend)
pat += 2;
} else if (c == k)
ok = 1;
}
if (ok == negate_range)
return(0);
break;