(re_compile_fastmap): Treat `succeed' like end of pattern.
authorKarl Heuer <kwzh@gnu.org>
Fri, 18 Nov 1994 01:04:41 +0000 (01:04 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 18 Nov 1994 01:04:41 +0000 (01:04 +0000)
regex.c

diff --git a/regex.c b/regex.c
index bce0224..0adb68c 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -2784,7 +2784,7 @@ re_compile_fastmap (bufp)
       
   while (p != pend || !FAIL_STACK_EMPTY ())
     {
-      if (p == pend)
+      if (p == pend || *p == succeed)
         {
           bufp->can_be_null |= path_can_be_null;