diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-04 14:39:08 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-04 14:39:08 +0000 |
commit | 38cbaf553edb0c7111e9e4365a9be9fe8ffa2c69 (patch) | |
tree | 96dc01e9a0cb9d7a868f0544fc43d07e3bffd744 /dump.c | |
parent | 44a2ac759eaf811ea851bdf9177a51bf9b95b5ce (diff) | |
download | perl-38cbaf553edb0c7111e9e4365a9be9fe8ffa2c69.tar.gz |
Silence a 'null argument' warning
p4raw-id: //depot/perl@29683
Diffstat (limited to 'dump.c')
-rw-r--r-- | dump.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |