summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-01-04 14:39:08 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-01-04 14:39:08 +0000
commit38cbaf553edb0c7111e9e4365a9be9fe8ffa2c69 (patch)
tree96dc01e9a0cb9d7a868f0544fc43d07e3bffd744 /dump.c
parent44a2ac759eaf811ea851bdf9177a51bf9b95b5ce (diff)
downloadperl-38cbaf553edb0c7111e9e4365a9be9fe8ffa2c69.tar.gz
Silence a 'null argument' warning
p4raw-id: //depot/perl@29683
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dump.c b/dump.c
index 6ececc9644..1972efff28 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);