diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-11-23 23:32:30 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-11-24 01:45:31 -0800 |
commit | 5668452f0dfcb2591dfb8da07389b99e8823a280 (patch) | |
tree | 94ffdacfa254a99d3c4a5aefc8f2235eb2696f74 /pp_hot.c | |
parent | e935c5db5165ed95c32f8f97cd8951091c77993c (diff) | |
download | perl-5668452f0dfcb2591dfb8da07389b99e8823a280.tar.gz |
Call FETCH once for rcatline
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1614,12 +1614,12 @@ Perl_do_readline(pTHX) mg_get(sv); if (SvROK(sv)) { if (type == OP_RCATLINE) - SvPV_force_nolen(sv); + SvPV_force_nomg_nolen(sv); else sv_unref(sv); } else if (isGV_with_GP(sv)) { - SvPV_force_nolen(sv); + SvPV_force_nomg_nolen(sv); } SvUPGRADE(sv, SVt_PV); tmplen = SvLEN(sv); /* remember if already alloced */ @@ -1632,7 +1632,7 @@ Perl_do_readline(pTHX) offset = 0; if (type == OP_RCATLINE && SvOK(sv)) { if (!SvPOK(sv)) { - SvPV_force_nolen(sv); + SvPV_force_nomg_nolen(sv); } offset = SvCUR(sv); } |