diff options
author | Larry Wall <larry@wall.org> | 1998-09-05 23:41:42 +0000 |
---|---|---|
committer | Larry Wall <larry@wall.org> | 1998-09-05 23:41:42 +0000 |
commit | 0b71040ecef552254b590fe9935cf4942b087ec2 (patch) | |
tree | 61b982de6211c6367522e3ecabf6ea3751416e97 /op.c | |
parent | 63eb823a4363c9bf0207de13bc5cc0828f38a135 (diff) | |
download | perl-0b71040ecef552254b590fe9935cf4942b087ec2.tar.gz |
index() applied BM optimization to wrong argument
p4raw-id: //depot/perl@1779
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |