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

Alexandre Julliard julliard at winehq.org
Mon Dec 27 16:15:03 CST 2021


Module: wine
Branch: master
Commit: b7223aff364081d30321b8761c3b62acdaa106ad
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b7223aff364081d30321b8761c3b62acdaa106ad

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Dec 26 16:09:01 2021 -0700

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

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/tests/debugger.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/kernel32/tests/debugger.c b/dlls/kernel32/tests/debugger.c
index 0955025a650..8b82aaecb9e 100644
--- a/dlls/kernel32/tests/debugger.c
+++ b/dlls/kernel32/tests/debugger.c
@@ -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"))




More information about the wine-cvs mailing list