From 7e35e8c18af3a4d8fb55aa467261e4f0c3b73b3a Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 3 Dec 2007 02:57:49 +0000 Subject: [PATCH] Work around some Windows CMD.EXE programs that will fail executing a totally empty batch file. [SVN r41626] --- src/engine/execnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/execnt.c b/src/engine/execnt.c index a7e65da43..41dd1dab4 100644 --- a/src/engine/execnt.c +++ b/src/engine/execnt.c @@ -238,7 +238,7 @@ void execcmd( } /* Trim leading, -ending- white space */ - while( isspace( *command ) ) + while( *(command+1) && isspace( *command ) ) ++command; /* Write to .BAT file unless the line would be too long and it