]> sourceware.org Git - glibc.git/commitdiff
(parse_reg_exp): If '|' is immediately followed by another '|', end of regex or enclo...
authorUlrich Drepper <drepper@redhat.com>
Mon, 12 Aug 2002 19:18:45 +0000 (19:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 12 Aug 2002 19:18:45 +0000 (19:18 +0000)
posix/regcomp.c

index 0613de6553d6eded3619ae61040c28b4e7cd465f..9406383283d15832285177313ea0b290cadd4a73 100644 (file)
@@ -1807,6 +1807,8 @@ parse_reg_exp (regexp, preg, token, syntax, nest, err)
               return NULL;
             }
         }
+      else
+       branch = NULL;
       tree = create_tree (tree, branch, 0, new_idx);
       if (BE (new_idx == -1 || tree == NULL, 0))
         return *err = REG_ESPACE, NULL;
This page took 0.047493 seconds and 5 git commands to generate.