summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-04 04:30:03 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-04 04:30:03 +0000
commite29cdcb37c6acfc6bee52de4b08de5a85c818aa6 (patch)
tree4ee2782a108cd87bac3d0eaabb05238bb9c74562 /dump.c
parent2dde2d61b30c8b775ca2cbc17a9153c34b074291 (diff)
downloadperl-e29cdcb37c6acfc6bee52de4b08de5a85c818aa6.tar.gz
ignore stash entries that are not GVs in dump.c
p4raw-id: //depot/perl@1291
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dump.c b/dump.c
index 8735585a55..c25bed934a 100644
--- a/dump.c
+++ b/dump.c
@@ -45,6 +45,8 @@ dump_packsubs(HV *stash)
for (entry = HvARRAY(stash)[i]; entry; entry = HeNEXT(entry)) {
GV *gv = (GV*)HeVAL(entry);
HV *hv;
+ if (SvTYPE(gv) != SVt_PVGV || !GvGP(gv))
+ continue;
if (GvCVu(gv))
dump_sub(gv);
if (GvFORM(gv))