Forget prototype of subroutine after C<undef &subr>
authorChip Salzenberg <chip@perl.com>
Thu, 24 Apr 1997 14:34:21 +0000 (02:34 +1200)
committerChip Salzenberg <chip@atlantic.net>
Wed, 30 Apr 1997 12:00:00 +0000 (00:00 +1200)
op.c

diff --git a/op.c b/op.c
index cf78f86..af7ec8b 100644 (file)
--- a/op.c
+++ b/op.c
@@ -2930,6 +2930,7 @@ CV *cv;
        CvROOT(cv) = Nullop;
        LEAVE;
     }
+    SvPOK_off((SV*)cv);                /* forget prototype */
     CvFLAGS(cv) = 0;
     SvREFCNT_dec(CvGV(cv));
     CvGV(cv) = Nullgv;