Revert "cppcheck reduce scope of var in odk/..unoapploader.c"
This reverts commit 595de860c7
.
MSVC couldn't handle this.
This commit is contained in:
@@ -81,6 +81,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
|||||||
char* value = NULL;
|
char* value = NULL;
|
||||||
char* envstr = NULL;
|
char* envstr = NULL;
|
||||||
char* cmdline = NULL;
|
char* cmdline = NULL;
|
||||||
|
int size;
|
||||||
STARTUPINFO startup_info;
|
STARTUPINFO startup_info;
|
||||||
PROCESS_INFORMATION process_info;
|
PROCESS_INFORMATION process_info;
|
||||||
BOOL bCreate;
|
BOOL bCreate;
|
||||||
@@ -229,7 +230,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
|||||||
* note that this only affects the environment variable of the current
|
* note that this only affects the environment variable of the current
|
||||||
* process, the command processor's environment is not changed
|
* 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 )
|
if ( value != NULL )
|
||||||
size += strlen( PATHSEPARATOR ) + strlen( value );
|
size += strlen( PATHSEPARATOR ) + strlen( value );
|
||||||
envstr = (char*) malloc( size );
|
envstr = (char*) malloc( size );
|
||||||
|
Reference in New Issue
Block a user