summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-09-20 09:44:15 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2010-09-20 09:44:15 +0200
commit21630838a66f778c0a320128e9a7db71d785f293 (patch)
tree22d35bf38854ccd9e5356e0f38fc91204cfc7a38 /doio.c
parentd9f0b46418e111c5d35dd5f6e3196a145a545f97 (diff)
downloadperl-21630838a66f778c0a320128e9a7db71d785f293.tar.gz
Don’t use PL_op without checking it first.
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 2f660cc906..526e1b5df6 100644
--- a/doio.c
+++ b/doio.c
@@ -1241,7 +1241,9 @@ Perl_do_print(pTHX_ register SV *sv, PerlIO *fp)
else {
assert((char *)result == tmps);
Perl_ck_warner_d(aTHX_ packWARN(WARN_UTF8),
- "Wide character in %s", OP_DESC(PL_op));
+ "Wide character in %s",
+ PL_op ? OP_DESC(PL_op) : "print"
+ );
}
}
/* To detect whether the process is about to overstep its