diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-11-23 13:29:48 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-11-24 01:45:29 -0800 |
commit | fbac7ddfe5fe25427224e9715c122160178f47a2 (patch) | |
tree | c8130a8c913f39b3a88cf68fd53ceadf7b557ab2 /pp.c | |
parent | a5f4b619f316c936a9c585a8eb6511adc831eb52 (diff) | |
download | perl-fbac7ddfe5fe25427224e9715c122160178f47a2.tar.gz |
Call FETCH once when chomping a tied ref
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -882,7 +882,7 @@ S_do_chomp(pTHX_ SV *retval, SV *sv, bool chomping) SvIVX(retval) += rs_charlen; } } - s = SvPV_force_nolen(sv); + s = SvPV_force_nomg_nolen(sv); SvCUR_set(sv, len); *SvEND(sv) = '\0'; SvNIOK_off(sv); |