regex.c change between 1.64 and 1.65

Andreas Schwab schwab@suse.de
Tue Feb 1 03:45:00 GMT 2000


What is this change in posix/regex.c supposed to fix?

@@ -2910,7 +2910,7 @@
 
                 if (p == pend)
                   {
-                    if (syntax & RE_NO_BK_BRACES)
+                    if (!(syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES))
                       goto unfetch_interval;
                     else
                       FREE_STACK_RETURN (REG_EBRACE);


When the label handle_interval is reached the RE_INTERVALS bit is always
set, so this condition cannot ever be true any more.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg


More information about the Libc-hacker mailing list