From: Karl Heuer Date: Fri, 18 Nov 1994 01:04:41 +0000 (+0000) Subject: (re_compile_fastmap): Treat `succeed' like end of pattern. X-Git-Tag: emacs-19.34~5855 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6d6432476c78812bf0bb88d4122da4c4c9888a2d;p=emacs.git (re_compile_fastmap): Treat `succeed' like end of pattern. --- diff --git a/src/regex.c b/src/regex.c index bce02247d05..0adb68c7c9f 100644 --- a/src/regex.c +++ b/src/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;