diff --git a/odk/source/unoapploader/win/unoapploader.c b/odk/source/unoapploader/win/unoapploader.c index 990b00259d74..762b554744b3 100644 --- a/odk/source/unoapploader/win/unoapploader.c +++ b/odk/source/unoapploader/win/unoapploader.c @@ -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 );