In XS_attributes__guess_stash, attempting to call Gv* on a PVMG is
Nicholas Clark [Thu, 23 Feb 2006 17:45:55 +0000 (17:45 +0000)]
bad and wrong.

p4raw-id: //depot/perl@27288

xsutils.c

index 59a2496..94d7652 100644 (file)
--- a/xsutils.c
+++ b/xsutils.c
@@ -278,10 +278,6 @@ usage:
            else if (/* !CvANON(sv) && */ CvSTASH(sv))
                stash = CvSTASH(sv);
            break;
-       case SVt_PVMG:
-           if (!(SvFAKE(sv) && SvTIED_mg(sv, PERL_MAGIC_glob)))
-               break;
-           /*FALLTHROUGH*/
        case SVt_PVGV:
            if (GvGP(sv) && GvESTASH((GV*)sv))
                stash = GvESTASH((GV*)sv);