diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-10-08 10:19:23 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-10-08 10:44:28 +0200 |
commit | 7e9a597202568a812a6470939b0ad1a693685adc (patch) | |
tree | 03f3b045bc6c94652b97c326d506393b74ba0e38 /odk | |
parent | a2c45688c094d8fa88f9ac0c3534a03fbb9a3b2a (diff) |
Revert "cppcheck reduce scope of var in odk/..unoapploader.c"
This reverts commit 595de860c7a3fb274d2cf432bd1fa04a008503a0.
MSVC couldn't handle this.
Diffstat (limited to 'odk')
-rw-r--r-- | odk/source/unoapploader/win/unoapploader.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 ); |