aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-11-18 01:04:41 +0000
committerKarl Heuer1994-11-18 01:04:41 +0000
commit6d6432476c78812bf0bb88d4122da4c4c9888a2d (patch)
treef71fe4456cf0546bc3b704b3c457eb016ec40e85
parent7c77d665465bd96247bec5baa42dcc35e67ba4ca (diff)
downloademacs-6d6432476c78812bf0bb88d4122da4c4c9888a2d.tar.gz
emacs-6d6432476c78812bf0bb88d4122da4c4c9888a2d.zip
(re_compile_fastmap): Treat `succeed' like end of pattern.
-rw-r--r--src/regex.c2
1 files changed, 1 insertions, 1 deletions
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)
2784 2784
2785 while (p != pend || !FAIL_STACK_EMPTY ()) 2785 while (p != pend || !FAIL_STACK_EMPTY ())
2786 { 2786 {
2787 if (p == pend) 2787 if (p == pend || *p == succeed)
2788 { 2788 {
2789 bufp->can_be_null |= path_can_be_null; 2789 bufp->can_be_null |= path_can_be_null;
2790 2790