In Perl_yylex(), no need to Newxz() a buffer we immediately write to.
Nicholas Clark [Tue, 19 May 2009 10:27:37 +0000 (12:27 +0200)]
toke.c

diff --git a/toke.c b/toke.c
index 3fda3a5..a15dca6 100644 (file)
--- 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++;