From f3bbc7d9c2c2b58c5d60d9d4c4eef0980784a8e6 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. --- regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regex.c b/regex.c index bce02247d..0adb68c7c 100644 --- a/regex.c +++ b/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.11.0