Revert "cppcheck reduce scope of var in odk/..unoapploader.c"
This reverts commit 595de860c7
.
MSVC couldn't handle this.
This commit is contained in:
parent
a2c45688c0
commit
7e9a597202
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue