summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-05-02 16:26:24 +0000
committerNicholas Clark <nick@ccl4.org>2007-05-02 16:26:24 +0000
commitb89b0c6f71c5a46eb35a7e4a981d64eb1ed39c5d (patch)
tree46e4a022eb6944b3d13897b8b4f6902b837e182e /regcomp.c
parentc49d5ed730376407060cbf826eab2369ab99bf61 (diff)
downloadperl-b89b0c6f71c5a46eb35a7e4a981d64eb1ed39c5d.tar.gz
Get PERL_OLD_COPY_ON_WRITE passing all tests, apart from
ext/Compress/Raw/Zlib/t/07bufsize.t which still puzzles me. p4raw-id: //depot/perl@31120
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/regcomp.c b/regcomp.c
index 4027bda9ec..6b123c3706 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -8866,10 +8866,7 @@ Perl_reg_temp_copy (pTHX_ struct regexp *r) {
}
RX_MATCH_COPIED_off(ret);
#ifdef PERL_OLD_COPY_ON_WRITE
- /* this is broken. */
- assert(0);
- if (ret->saved_copy)
- ret->saved_copy=NULL;
+ ret->saved_copy = NULL;
#endif
ret->mother_re = r;
ret->swap = NULL;