From 6d6432476c78812bf0bb88d4122da4c4c9888a2d Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 18 Nov 1994 01:04:41 +0000 Subject: [PATCH] (re_compile_fastmap): Treat `succeed' like end of pattern. --- src/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5