From: Nicholas Clark Date: Mon, 20 Mar 2006 10:13:38 +0000 (+0000) Subject: If the scalar has just been upgraded to SVt_RV, there's no way SvPVX X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bc6af7f8cb3d4ab094ae8df3969217a3682c9bed;p=p5sagit%2Fp5-mst-13.2.git If the scalar has just been upgraded to SVt_RV, there's no way SvPVX can be non-NULL, so no need to check. p4raw-id: //depot/perl@27548 --- diff --git a/pp.c b/pp.c index 383b426..6b3ead8 100644 --- a/pp.c +++ b/pp.c @@ -172,7 +172,7 @@ PP(pp_rv2gv) } if (SvTYPE(sv) < SVt_RV) sv_upgrade(sv, SVt_RV); - if (SvPVX_const(sv)) { + else if (SvPVX_const(sv)) { SvPV_free(sv); SvLEN_set(sv, 0); SvCUR_set(sv, 0);