summaryrefslogtreecommitdiffstats
path: root/Source/cmWin32ProcessExecution.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-06-24 13:05:38 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-06-24 13:05:38 (GMT)
commit2cf4a0270a1754c0e827795e611a201afcba076c (patch)
treee3bdf827572db140d009dd8e2b42a86b42403438 /Source/cmWin32ProcessExecution.cxx
parent78cc9adbd2efd01d934bdadef9852ae2010b4123 (diff)
downloadCMake-2cf4a0270a1754c0e827795e611a201afcba076c.zip
CMake-2cf4a0270a1754c0e827795e611a201afcba076c.tar.gz
CMake-2cf4a0270a1754c0e827795e611a201afcba076c.tar.bz2
ENH: remove warning on borland
Diffstat (limited to 'Source/cmWin32ProcessExecution.cxx')
-rw-r--r--Source/cmWin32ProcessExecution.cxx3
1 files changed, 1 insertions, 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: ";