(Retracted by #8914)
Charles Lane [Thu, 22 Feb 2001 09:43:57 +0000 (04:43 -0500)]
(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

op.c

diff --git a/op.c b/op.c
index ab9d7b1..0ba050d 100644 (file)
--- 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