From 20dbff7c228c031beedfe10ca09e8547f7cd3f2f Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Tue, 2 Nov 2010 14:24:20 +0100 Subject: fix the trie part of rt-78356 When the jump code was added the case of an empty string followed by a jump wasnt accounted for. One could argue it should not happen however that is a matter for a different commit. --- regexec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'regexec.c') diff --git a/regexec.c b/regexec.c index 2e15b45778..7e479a33c0 100644 --- a/regexec.c +++ b/regexec.c @@ -3223,7 +3223,8 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog) "%*s %smatched empty string...%s\n", REPORT_CODE_OFF+depth*2, "", PL_colors[4], PL_colors[5]) ); - break; + if (!trie->jump) + break; } else { DEBUG_EXECUTE_r( PerlIO_printf(Perl_debug_log, -- cgit v1.2.1