From: Rafael Garcia-Suarez Date: Thu, 4 Jan 2007 14:39:08 +0000 (+0000) Subject: Silence a 'null argument' warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=38cbaf553edb0c7111e9e4365a9be9fe8ffa2c69;p=p5sagit%2Fp5-mst-13.2.git Silence a 'null argument' warning p4raw-id: //depot/perl@29683 --- diff --git a/dump.c b/dump.c index 6ececc9..1972eff 100644 --- a/dump.c +++ b/dump.c @@ -1565,8 +1565,9 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo } 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);