This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: undef(&foo) does not work for XS functions
authorDoug MacEachern <dougm@covalent.net>
Fri, 11 May 2001 16:52:29 +0000 (09:52 -0700)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 12 May 2001 03:37:00 +0000 (03:37 +0000)
Message-ID: <Pine.LNX.4.21.0105111647240.4478-100000@mako.covalent.net>

p4raw-id: //depot/perl@10088

op.c

diff --git a/op.c b/op.c
index 77a6267..5a51f9b 100644 (file)
--- a/op.c
+++ b/op.c
@@ -4216,6 +4216,9 @@ Perl_cv_undef(pTHX_ CV *cv)
        }
        CvPADLIST(cv) = Nullav;
     }
+    if (CvXSUB(cv)) {
+        CvXSUB(cv) = 0;
+    }
     CvFLAGS(cv) = 0;
 }