diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-04-18 20:37:13 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-04-18 20:37:13 +0000 |
commit | b7e9a5c2d751f7ed3b8a703e57ac933ded5b16ce (patch) | |
tree | bcf34825827a23edae1461145bdfdd5ec7dd12f0 /pp_hot.c | |
parent | 8b44ba4cc571a1253e8c2108fde4508f22646523 (diff) | |
download | perl-b7e9a5c2d751f7ed3b8a703e57ac933ded5b16ce.tar.gz |
Replace Renew(SvPVX(...)...) with SvPV_renew, which avoids an LVALUE
SvPVX
p4raw-id: //depot/perl@24244
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1625,7 +1625,7 @@ Perl_do_readline(pTHX) if (gimme == G_ARRAY) { if (SvLEN(sv) - SvCUR(sv) > 20) { SvLEN_set(sv, SvCUR(sv)+1); - Renew(SvPVX(sv), SvLEN(sv), char); + SvPV_renew(sv, SvLEN(sv)); } sv = sv_2mortal(NEWSV(58, 80)); continue; @@ -1635,7 +1635,7 @@ Perl_do_readline(pTHX) const STRLEN new_len = SvCUR(sv) < 60 ? 80 : SvCUR(sv)+40; /* allow some slop */ SvLEN_set(sv, new_len); - Renew(SvPVX(sv), SvLEN(sv), char); + SvPV_renew(sv, SvLEN(sv)); } RETURN; } |