kernel32/tests: Ensure auto_value.data is initialized in test_ExitCode (Coverity).

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2021-12-26 16:09:01 -07:00 committed by Alexandre Julliard
parent b3166ff31e
commit b7223aff36
1 changed files with 5 additions and 1 deletions

View File

@ -752,7 +752,11 @@ static void test_ExitCode(void)
ok(0, "could not open the AeDebug key: %d\n", ret);
return;
}
else debugger_value.data = NULL;
else
{
auto_value.data = NULL;
debugger_value.data = NULL;
}
if (debugger_value.data && debugger_value.type == REG_SZ &&
strstr((char*)debugger_value.data, "winedbg --auto"))