summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-11-23 23:32:30 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-11-24 01:45:31 -0800
commit5668452f0dfcb2591dfb8da07389b99e8823a280 (patch)
tree94ffdacfa254a99d3c4a5aefc8f2235eb2696f74 /pp_hot.c
parente935c5db5165ed95c32f8f97cd8951091c77993c (diff)
downloadperl-5668452f0dfcb2591dfb8da07389b99e8823a280.tar.gz
Call FETCH once for rcatline
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp_hot.c b/pp_hot.c
index eb8fe4ffd5..70eb5a163a 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -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);
}