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

This reverts commit 595de860c7.
MSVC couldn't handle this.
This commit is contained in:
Matúš Kukan 2011-10-08 10:19:23 +02:00
parent a2c45688c0
commit 7e9a597202

View file

@ -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 );