summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-11-16 14:56:11 +0000
committerZefram <zefram@fysh.org>2017-11-16 14:59:22 +0000
commit19a8de486236b6004a51aa6c16eb9fcde47d86d1 (patch)
tree8c7908914c9d3edb04c917249e72c34d152cdfa5 /op.c
parenta2ed475b03b6a44991249033e2fa7dc3818d361b (diff)
downloadperl-19a8de486236b6004a51aa6c16eb9fcde47d86d1.tar.gz
fix lvalue context for 4-arg substr
4-arg substr uses its first arg as an lvalue, but wasn't lvaluifying it properly. [perl #115258]
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 c617ad2a00..2e4dae43c6 100644
--- a/op.c
+++ b/op.c
@@ -13385,7 +13385,7 @@ Perl_ck_substr(pTHX_ OP *o)
if (kid->op_type == OP_NULL)
kid = OpSIBLING(kid);
if (kid)
- kid->op_flags |= OPf_MOD;
+ op_lvalue(kid, o->op_type);
}
return o;