diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-08-27 14:56:52 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-08-27 23:24:01 -0700 |
commit | 4b1709c81eda847f426abd956588d275ab068d2c (patch) | |
tree | 3df947df57ec1c141d930f676eeeda6a1d846087 | |
parent | d794b5224fb01fd9fb94ed555497ebfea2aa1c96 (diff) | |
download | perl-4b1709c81eda847f426abd956588d275ab068d2c.tar.gz |
op.c: newSTATEOP: don’t check PL_parser after using it
If it is null, we would already have crashed when reaching this
statement.
-rw-r--r-- | op.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -5605,8 +5605,7 @@ Perl_newSTATEOP(pTHX_ I32 flags, char *label, OP *o) CopLINE_set(cop, CopLINE(PL_curcop)); else { CopLINE_set(cop, PL_parser->copline); - if (PL_parser) - PL_parser->copline = NOLINE; + PL_parser->copline = NOLINE; } #ifdef USE_ITHREADS CopFILE_set(cop, CopFILE(PL_curcop)); /* XXX share in a pvtable? */ |