p4raw-id: //depot/perl@25087
if (SvPOK(error) && SvCUR(error))
sv_catpv(error, "\t...propagated");
tmpsv = error;
- tmps = SvPV_const(tmpsv, len);
+ if (SvOK(tmpsv))
+ tmps = SvPV_const(tmpsv, len);
+ else
+ tmps = Nullch;
}
}
if (!tmps || !len)
#!./perl
-print "1..14\n";
+print "1..15\n";
$SIG{__DIE__} = sub { print ref($_[0]) ? ("ok ",$_[0]->[0]++,"\n") : @_ } ;
print "not " unless $@ =~ /Global symbol "\$\x{3b1}"/;
print "ok 14\n";
}
+
+# [perl #36470] got uninit warning if $@ was undef
+
+{
+ my $ok = 1;
+ local $SIG{__DIE__};
+ local $SIG{__WARN__} = sub { $ok = 0 };
+ eval { undef $@; die };
+ print "not " unless $ok;
+ print "ok 15\n";
+}