summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-27 14:56:52 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-08-27 23:24:01 -0700
commit4b1709c81eda847f426abd956588d275ab068d2c (patch)
tree3df947df57ec1c141d930f676eeeda6a1d846087
parentd794b5224fb01fd9fb94ed555497ebfea2aa1c96 (diff)
downloadperl-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/op.c b/op.c
index c8196b8d4b..f807d33271 100644
--- a/op.c
+++ b/op.c
@@ -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? */