p4raw-id: //depot/perl@29683
}
if (type >= SVt_PVMG) {
if (type == SVt_PVMG && SvPAD_OUR(sv)) {
- if (SvOURSTASH(sv))
- do_hv_dump(level, file, " OURSTASH", SvOURSTASH(sv));
+ HV *ost = SvOURSTASH(sv);
+ if (ost)
+ do_hv_dump(level, file, " OURSTASH", ost);
} else {
if (SvMAGIC(sv))
do_magic_dump(level, file, SvMAGIC(sv), nest, maxnest, dumpops, pvlim);