Add missing pair of braces introduced with character class support.
This commit is contained in:
3
glob.c
3
glob.c
@@ -814,7 +814,7 @@ match(name, pat, patend)
|
|||||||
return(0);
|
return(0);
|
||||||
if ((negate_range = ((*pat & M_MASK) == M_NOT)) != EOS)
|
if ((negate_range = ((*pat & M_MASK) == M_NOT)) != EOS)
|
||||||
++pat;
|
++pat;
|
||||||
while (((c = *pat++) & M_MASK) != M_END)
|
while (((c = *pat++) & M_MASK) != M_END) {
|
||||||
if ((c & M_MASK) == M_CLASS) {
|
if ((c & M_MASK) == M_CLASS) {
|
||||||
int idx = *pat & M_MASK;
|
int idx = *pat & M_MASK;
|
||||||
if (idx < NCCLASSES &&
|
if (idx < NCCLASSES &&
|
||||||
@@ -828,6 +828,7 @@ match(name, pat, patend)
|
|||||||
pat += 2;
|
pat += 2;
|
||||||
} else if (c == k)
|
} else if (c == k)
|
||||||
ok = 1;
|
ok = 1;
|
||||||
|
}
|
||||||
if (ok == negate_range)
|
if (ok == negate_range)
|
||||||
return(0);
|
return(0);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user