changeset 10000:659346eafd79

(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 8187800943e7
children d615506e81be
files src/regex.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Thu Nov 17 21:49:27 1994 +0000
+++ b/src/regex.c	Fri Nov 18 01:04:41 1994 +0000
@@ -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;