summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-11-23 13:29:48 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-11-24 01:45:29 -0800
commitfbac7ddfe5fe25427224e9715c122160178f47a2 (patch)
treec8130a8c913f39b3a88cf68fd53ceadf7b557ab2 /pp.c
parenta5f4b619f316c936a9c585a8eb6511adc831eb52 (diff)
downloadperl-fbac7ddfe5fe25427224e9715c122160178f47a2.tar.gz
Call FETCH once when chomping a tied ref
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 9325d0e937..16794adee0 100644
--- a/pp.c
+++ b/pp.c
@@ -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);