summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2003-02-17 21:07:03 +0000
committerhv <hv@crypt.org>2003-02-18 00:51:24 +0000
commit9a26048b591176092513e1e0db064d5315c21465 (patch)
tree034ec86b05062afb8525a50a5697d52bbecc3101
parent31b49ad407e88940fdaef710e5f6a42665a067d8 (diff)
downloadperl-9a26048b591176092513e1e0db064d5315c21465.tar.gz
Re: [PATCH] Re: [PATCH] Copy on write for $& and $1...
Message-ID: <20030217210330.A8611@plum.flirble.org> p4raw-id: //depot/perl@18738
-rw-r--r--sv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 98d70a48c2..73fef98fed 100644
--- a/sv.c
+++ b/sv.c
@@ -9323,6 +9323,9 @@ Perl_re_dup(pTHX_ REGEXP *r, CLONE_PARAMS *param)
ret->subbeg = SAVEPV(r->subbeg);
else
ret->subbeg = Nullch;
+#ifdef PERL_COPY_ON_WRITE
+ ret->saved_copy = Nullsv;
+#endif
ptr_table_store(PL_ptr_table, r, ret);
return ret;