avoid gv_check() recursive pit
Gurusamy Sarathy [Sat, 29 May 1999 16:49:39 +0000 (16:49 +0000)]
p4raw-id: //depot/perl@3506

gv.c

diff --git a/gv.c b/gv.c
index 8df41c5..7ab7496 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -892,7 +892,7 @@ gv_check(HV *stash)
            if (HeKEY(entry)[HeKLEN(entry)-1] == ':' &&
                (gv = (GV*)HeVAL(entry)) && (hv = GvHV(gv)) && HvNAME(hv))
            {
-               if (hv != PL_defstash)
+               if (hv != PL_defstash && hv != stash)
                     gv_check(hv);              /* nested package */
            }
            else if (isALPHA(*HeKEY(entry))) {