Kaydet (Commit) 7e9a5972 authored tarafından Matúš Kukan's avatar Matúš Kukan

Revert "cppcheck reduce scope of var in odk/..unoapploader.c"

This reverts commit 595de860.
MSVC couldn't handle this.
üst a2c45688
......@@ -81,6 +81,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
char* value = NULL;
char* envstr = NULL;
char* cmdline = NULL;
int size;
STARTUPINFO startup_info;
PROCESS_INFORMATION process_info;
BOOL bCreate;
......@@ -229,7 +230,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
* note that this only affects the environment variable of the current
* process, the command processor's environment is not changed
*/
int size = strlen( ENVVARNAME ) + strlen( "=" ) + strlen( path ) + 1;
size = strlen( ENVVARNAME ) + strlen( "=" ) + strlen( path ) + 1;
if ( value != NULL )
size += strlen( PATHSEPARATOR ) + strlen( value );
envstr = (char*) malloc( size );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment