diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-09-09 22:27:38 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-09-09 22:27:38 +0000 |
commit | cc4b8646f4297d1d601d9f445953d91eaef16779 (patch) | |
tree | 3dc9e9a13342381303aecae02d42213b29db2473 /sv.c | |
parent | a74073ad6436c46fca5196ffa4ea01684b55afc4 (diff) | |
download | perl-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)) |