summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@covalent.net>2001-05-11 09:52:29 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-12 03:37:00 +0000
commit50762d599a70539e068604b244288cd8a1dd3ee1 (patch)
tree968d72f2786a9759b0d2d1d0de88cf7b4df0fb81 /op.c
parent1a2d385905f5986a5909cca4b74c6bc6bca7d9a5 (diff)
downloadperl-50762d599a70539e068604b244288cd8a1dd3ee1.tar.gz
Re: undef(&foo) does not work for XS functions
Message-ID: <Pine.LNX.4.21.0105111647240.4478-100000@mako.covalent.net> p4raw-id: //depot/perl@10088
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/op.c b/op.c
index 77a6267d75..5a51f9b83c 100644
--- 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;
}