summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2016-09-08 22:17:34 -0700
committerFather Chrysostomos <sprout@cpan.org>2016-09-10 14:11:18 -0700
commitbbd6d871a56f710514d051bb71c3909085b11daf (patch)
tree85ef29d87a06b43b65b5fe83422ed8f8cb9dd8a3 /op.c
parent9c426bfddbdd904fc37d276cc68e6f2ec04251f4 (diff)
downloadperl-bbd6d871a56f710514d051bb71c3909085b11daf.tar.gz
op.c: Avoid string cmp when unnecessary
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 10a6db17e6..3eb0e9ba38 100644
--- a/op.c
+++ b/op.c
@@ -8686,7 +8686,7 @@ Perl_newATTRSUB_x(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs,
}
/* don't copy new BEGIN CV to old BEGIN CV - RT #129099 */
- if (name && *name == 'B' && strEQ(name, "BEGIN"))
+ if (name && cv && *name == 'B' && strEQ(name, "BEGIN"))
cv = NULL;
if (cv) { /* must reuse cv if autoloaded */