op.c: newSTATEOP: don’t check PL_parser after using it
authorFather Chrysostomos <sprout@cpan.org>
Mon, 27 Aug 2012 21:56:52 +0000 (14:56 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 28 Aug 2012 06:24:01 +0000 (23:24 -0700)
If it is null, we would already have crashed when reaching this
statement.

op.c

diff --git a/op.c b/op.c
index c8196b8..f807d33 100644 (file)
--- 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? */