From cca76bfc6a70498677fc2cf8b0f261b9801f22d2 Mon Sep 17 00:00:00 2001 From: Rene Rivera <grafikrobot@gmail.com> 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] --- historic/jam/src/execnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/historic/jam/src/execnt.c b/historic/jam/src/execnt.c index a7e65da4..41dd1dab 100644 --- a/historic/jam/src/execnt.c +++ b/historic/jam/src/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