diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-09-20 09:44:15 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-09-20 09:44:15 +0200 |
commit | 21630838a66f778c0a320128e9a7db71d785f293 (patch) | |
tree | 22d35bf38854ccd9e5356e0f38fc91204cfc7a38 /doio.c | |
parent | d9f0b46418e111c5d35dd5f6e3196a145a545f97 (diff) | |
download | perl-21630838a66f778c0a320128e9a7db71d785f293.tar.gz |
Don’t use PL_op without checking it first.
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |