From: Nicholas Clark Date: Tue, 19 May 2009 10:27:37 +0000 (+0200) Subject: In Perl_yylex(), no need to Newxz() a buffer we immediately write to. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d85f917eae8ded4d020f0addd35e5aa488f2c0c0;p=p5sagit%2Fp5-mst-13.2.git In Perl_yylex(), no need to Newxz() a buffer we immediately write to. --- diff --git a/toke.c b/toke.c index 3fda3a5..a15dca6 100644 --- a/toke.c +++ b/toke.c @@ -3970,7 +3970,7 @@ Perl_yylex(pTHX) while (s < PL_bufend && isSPACE(*s)) s++; if (s < PL_bufend) { - Newxz(newargv,PL_origargc+3,char*); + Newx(newargv,PL_origargc+3,char*); newargv[1] = s; while (s < PL_bufend && !isSPACE(*s)) s++;