From 7c1f5fb6d5d76ca76a743274330a7d906bb82a6b Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sat, 29 Sep 2012 23:31:44 -0700 Subject: [PATCH 1/1] 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. --- sv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv.c b/sv.c index 641b56f..c446fba 100644 --- a/sv.c +++ b/sv.c @@ -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); -- 1.8.3.1