Bladeren bron

ENH: remove warning on borland

Bill Hoffman 21 jaren geleden
bovenliggende
commit
2cf4a0270a
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1 2
      Source/cmWin32ProcessExecution.cxx

+ 1 - 2
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: ";