summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-09-09 22:27:38 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-09-09 22:27:38 +0000
commitcc4b8646f4297d1d601d9f445953d91eaef16779 (patch)
tree3dc9e9a13342381303aecae02d42213b29db2473 /sv.c
parenta74073ad6436c46fca5196ffa4ea01684b55afc4 (diff)
downloadperl-cc4b8646f4297d1d601d9f445953d91eaef16779.tar.gz
ununit pos value warning identified the wrong variable name
p4raw-id: //depot/perl@31834
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 4a2110779b..5cc15b1b99 100644
--- a/sv.c
+++ b/sv.c
@@ -12077,6 +12077,11 @@ S_find_uninit_var(pTHX_ OP* obase, SV* uninit_sv, bool match)
match = 1; /* XS or custom code could trigger random warnings */
goto do_op;
+ case OP_POS:
+ /* def-ness of rval pos() is independent of the def-ness of its arg */
+ if ( !(obase->op_flags & OPf_MOD))
+ break;
+
case OP_SCHOMP:
case OP_CHOMP:
if (SvROK(PL_rs) && uninit_sv == SvRV(PL_rs))