From: Doug MacEachern Date: Fri, 13 Jul 2001 08:51:24 +0000 (-0700) Subject: [patch] re_dup X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=12f8fb0120fba8ada8d34175fdf485375c42d6bb;p=p5sagit%2Fp5-mst-13.2.git [patch] re_dup Message-ID: p4raw-id: //depot/perl@11360 --- diff --git a/sv.c b/sv.c index 7a23cc8..b47bfa0 100644 --- a/sv.c +++ b/sv.c @@ -8368,7 +8368,7 @@ Perl_re_dup(pTHX_ REGEXP *r, clone_params *param) if (r->regstclass) { New(0, ret->regstclass, 1, regnode); - ret->regstclass->flags = r->regstclass->flags; + Copy(r->regstclass, ret->regstclass, 1, regnode); } else ret->regstclass = NULL;