From 2cf4a0270a1754c0e827795e611a201afcba076c Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 24 Jun 2004 09:05:38 -0400 Subject: ENH: remove warning on borland --- Source/cmWin32ProcessExecution.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx index d06a33c..1522cda 100644 --- a/Source/cmWin32ProcessExecution.cxx +++ b/Source/cmWin32ProcessExecution.cxx @@ -456,8 +456,7 @@ static BOOL RealPopenCreateProcess(const char *cmdstring, // Free the buffer. - char* str = 0; - str = strcpy(new char[strlen((char*)lpMsgBuf)+1], (char*)lpMsgBuf); + char* str = strcpy(new char[strlen((char*)lpMsgBuf)+1], (char*)lpMsgBuf); LocalFree( lpMsgBuf ); output += "CreateProcessError: "; -- cgit v0.12