From 607905347eb1bbe08eb76ed3e8e9e27622ad97ed Mon Sep 17 00:00:00 2001 From: Dave Mitchell Date: Mon, 15 Jan 2007 18:19:20 +0000 Subject: [PATCH] when cloning PL_regex_pad, copy SVf_BREAK flag too p4raw-id: //depot/perl@29837 --- sv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sv.c b/sv.c index 33cdb52..bfc9ee7 100644 --- a/sv.c +++ b/sv.c @@ -11025,6 +11025,8 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, newSViv(PTR2IV(CALLREGDUPE( INT2PTR(REGEXP *, SvIVX(regex)), param)))) ; + if (SvFLAGS(regex) & SVf_BREAK) + SvFLAGS(sv) |= SVf_BREAK; /* unrefcnted PL_curpm */ av_push(PL_regex_padav, sv); } } -- 1.8.3.1