Parcourir la source

ENH: remove warning on borland

Bill Hoffman il y a 21 ans
Parent
commit
2cf4a0270a
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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: ";