From: Charles Lane Date: Thu, 22 Feb 2001 09:43:57 +0000 (-0500) Subject: (Retracted by #8914) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=de39bd3b991df13674c4416d3edd61ba5ee124ba;p=p5sagit%2Fp5-mst-13.2.git (Retracted by #8914) (Wrongly, reinstated by #8941) Subject: [PATCH 5.7.0] don't zero CvFLAGS before checking for CvCONST! Message-Id: <010222094237.9d22e@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@8902 --- diff --git a/op.c b/op.c index ab9d7b1..0ba050d 100644 --- a/op.c +++ b/op.c @@ -4154,7 +4154,6 @@ Perl_cv_undef(pTHX_ CV *cv) LEAVE; } SvPOK_off((SV*)cv); /* forget prototype */ - CvFLAGS(cv) = 0; CvGV(cv) = Nullgv; SvREFCNT_dec(CvOUTSIDE(cv)); CvOUTSIDE(cv) = Nullcv; @@ -4183,6 +4182,7 @@ Perl_cv_undef(pTHX_ CV *cv) } CvPADLIST(cv) = Nullav; } + CvFLAGS(cv) = 0; } #ifdef DEBUG_CLOSURES