summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-01 22:36:17 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-09-01 22:36:48 -0700
commit3bf4a1dc4169e64441367a90ffb4ef88f763c17d (patch)
treefd9ff94d8d66bdd31ae6aed6f46046234193e7bf /toke.c
parent56610b8f2b65d1b4ac923119d519ef5afae19e61 (diff)
downloadperl-3bf4a1dc4169e64441367a90ffb4ef88f763c17d.tar.gz
Fix thinko in toke.c in 211a434
Oops. We can’t fiddle with the rv2cv op’s GV kid if it actually a padcv op. Don’t even look at it when handling a lexical sub call, because we don’t need it anyway. This should hopefully mitigate valgrind complaints.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 98e4b7d618..e5e3ddf074 100644
--- a/toke.c
+++ b/toke.c
@@ -6704,7 +6704,7 @@ Perl_yylex(pTHX)
}
/* Resolve to GV now if this is a placeholder. */
- if ((gvop = cUNOPx(rv2cv_op)->op_first)
+ if (!off && (gvop = cUNOPx(rv2cv_op)->op_first)
&& gvop->op_type == OP_GV) {
GV *gv2 = cGVOPx_gv(gvop);
if (gv2 && !isGV(gv2)) {