(next_brace_sub): Decrement depth counter when '}' is found.
authordrepper <drepper>
Wed, 26 Mar 1997 03:53:45 +0000 (03:53 +0000)
committerdrepper <drepper>
Wed, 26 Mar 1997 03:53:45 +0000 (03:53 +0000)
posix/glob.c

index 86a79b0..c23e6f7 100644 (file)
@@ -288,7 +288,7 @@ next_brace_sub (const char *begin)
          while (*cp != '\0' && (*cp != '}' || depth > 0))
            {
              if (*cp == '}')
-               ++depth;
+               --depth;
              ++cp;
            }
          if (*cp == '\0')