diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-02-18 15:50:28 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-02-18 15:50:28 +0000 |
commit | 2eb45a355a6191e7214a6e22dd73c00bc1a337d8 (patch) | |
tree | 51e6c8ff928b61f58b43145755504039a5079f87 /lib | |
parent | 84f6231d939bf92447e2621209e2d48390860ad9 (diff) |
Add missing braces. This is why we use braces for indented block that
are more than a couple of lines...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/glob.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/glob.c b/lib/libc/gen/glob.c index 59c26629659..7c6e8371807 100644 --- a/lib/libc/gen/glob.c +++ b/lib/libc/gen/glob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: glob.c,v 1.27 2008/10/01 23:04:13 millert Exp $ */ +/* $OpenBSD: glob.c,v 1.28 2009/02/18 15:50:27 millert Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -786,7 +786,7 @@ match(Char *name, Char *pat, Char *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 && @@ -800,6 +800,7 @@ match(Char *name, Char *pat, Char *patend) pat += 2; } else if (c == k) ok = 1; + } if (ok == negate_range) return(0); break; |