summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorLarry Wall <larry@wall.org>1998-09-05 23:41:42 +0000
committerLarry Wall <larry@wall.org>1998-09-05 23:41:42 +0000
commit0b71040ecef552254b590fe9935cf4942b087ec2 (patch)
tree61b982de6211c6367522e3ecabf6ea3751416e97 /op.c
parent63eb823a4363c9bf0207de13bc5cc0828f38a135 (diff)
downloadperl-0b71040ecef552254b590fe9935cf4942b087ec2.tar.gz
index() applied BM optimization to wrong argument
p4raw-id: //depot/perl@1779
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/op.c b/op.c
index 33a9efd693..53fb8c1ce3 100644
--- a/op.c
+++ b/op.c
@@ -4686,6 +4686,8 @@ ck_index(OP *o)
{
if (o->op_flags & OPf_KIDS) {
OP *kid = cLISTOPo->op_first->op_sibling; /* get past pushmark */
+ if (kid)
+ kid = kid->op_sibling; /* get past "big" */
if (kid && kid->op_type == OP_CONST)
fbm_compile(((SVOP*)kid)->op_sv, 0);
}