summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2005-07-06 20:09:29 +0000
committerDave Mitchell <davem@fdisolutions.com>2005-07-06 20:09:29 +0000
commitdc8d642c74abd1b6677ca197c9f517158a03b78c (patch)
treedfbddbd2d8d9ad8956af2d50f9ae39605b403330 /pp_sys.c
parent767010ca49e6a0dff07d97842a8341decbed33d9 (diff)
downloadperl-dc8d642c74abd1b6677ca197c9f517158a03b78c.tar.gz
[perl #36470] 'undef $@; die' gives uninint value warning
p4raw-id: //depot/perl@25087
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 8cffb1418c..d05c547966 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -517,7 +517,10 @@ PP(pp_die)
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)