diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx index d06a33cae..1522cdac3 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: ";