[win32] change 866 was incomplete
authorGurusamy Sarathy <gsar@cpan.org>
Sat, 4 Apr 1998 21:16:17 +0000 (21:16 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Sat, 4 Apr 1998 21:16:17 +0000 (21:16 +0000)
p4raw-id: //depot/win32/perl@879

hv.c

diff --git a/hv.c b/hv.c
index f35c180..cb7fbfb 100644 (file)
--- a/hv.c
+++ b/hv.c
@@ -841,7 +841,7 @@ hv_free_ent(HV *hv, register HE *entry)
     if (!entry)
        return;
     val = HeVAL(entry);
-    if (isGV(val) && GvCVu(val) && HvNAME(hv))
+    if (val && isGV(val) && GvCVu(val) && HvNAME(hv))
        sub_generation++;       /* may be deletion of method from stash */
     SvREFCNT_dec(val);
     if (HeKLEN(entry) == HEf_SVKEY) {