]> granicus.if.org Git - sudo/commitdiff
Add missing pair of braces introduced with character class support.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 Feb 2009 15:53:38 +0000 (15:53 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 Feb 2009 15:53:38 +0000 (15:53 +0000)
glob.c

diff --git a/glob.c b/glob.c
index 46d883b085d86fd4d893241af63c4cd903403e2b..1c692a4247277d4d995a817ca8f3ed855b9ddd66 100644 (file)
--- a/glob.c
+++ b/glob.c
@@ -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;