diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-09-29 23:31:44 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-10-01 12:51:57 -0700 |
commit | 7c1f5fb6d5d76ca76a743274330a7d906bb82a6b (patch) | |
tree | 858ed9b4439886c024a0625f3441883d6e457e43 /sv.c | |
parent | 01680ee999d21aaacc08a6e7e581c75fd81e30eb (diff) | |
download | perl-7c1f5fb6d5d76ca76a743274330a7d906bb82a6b.tar.gz |
sv.c: One less assignment in sv_pvutf8n_force
This function always assigns to *lp twice (though indirectly the first
time). It only needs to do so once.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9122,7 +9122,7 @@ Perl_sv_pvutf8n_force(pTHX_ SV *const sv, STRLEN *const lp) { PERL_ARGS_ASSERT_SV_PVUTF8N_FORCE; - sv_pvn_force(sv,lp); + sv_pvn_force(sv,0); sv_utf8_upgrade_nomg(sv); *lp = SvCUR(sv); return SvPVX(sv); |