diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.c | 2 |
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 | ||