summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-30 17:23:44 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-30 17:23:44 +0000
commite4e44778093d8ab0f643e5c4d3bbf079882672c3 (patch)
tree91744a8783fde5233569b5334d316bd41ab44dea /pp.c
parent7f9dcb269dc64cc7b1ca55e6703c0c441758e7dd (diff)
downloadperl-e4e44778093d8ab0f643e5c4d3bbf079882672c3.tar.gz
Dave noticed that change 28022 was wrong - should read is_index
rather than just index. p4raw-id: //depot/perl@28027
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 65e1d50649..253126dab7 100644
--- a/pp.c
+++ b/pp.c
@@ -3251,7 +3251,7 @@ PP(pp_index)
SvUTF8_on(big);
big_p = SvPVX(big);
}
- if (SvGAMAGIC(little) || index && !SvOK(little)) {
+ if (SvGAMAGIC(little) || (is_index && !SvOK(little))) {
/* index && SvOK() is a hack. fbm_instr() calls SvPV_const, which will
warn on undef, and we've already triggered a warning with the
SvPV_const some lines above. We can't remove that, as we need to