changeset 357:a22cf0adbc96

(re_compile_fastmap): Treat `succeed' like end of pattern.
author Karl Heuer <kwzh@gnu.org>
date Fri, 18 Nov 1994 01:04:41 +0000
parents 954b2b398f98
children 987499c700ed
files regex.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/regex.c
+++ b/regex.c
@@ -2784,7 +2784,7 @@
       
   while (p != pend || !FAIL_STACK_EMPTY ())
     {
-      if (p == pend)
+      if (p == pend || *p == succeed)
         {
           bufp->can_be_null |= path_can_be_null;