projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d794b52
)
op.c: newSTATEOP: don’t check PL_parser after using it
author
Father Chrysostomos
<sprout@cpan.org>
Mon, 27 Aug 2012 21:56:52 +0000
(14:56 -0700)
committer
Father 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
patch
|
blob
|
history
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? */