Fabian Maurer : ntdll/tests: Fix uninitialized read in ok (Coverity).
Module: wine Branch: master Commit: 57e37c2a9133c7bcb771f99882a1666c4758bfcf URL: https://gitlab.winehq.org/wine/wine/-/commit/57e37c2a9133c7bcb771f99882a1666... Author: Fabian Maurer <dark.shadow4(a)web.de> Date: Wed Nov 2 02:32:38 2022 +0100 ntdll/tests: Fix uninitialized read in ok (Coverity). Signed-off-by: Fabian Maurer <dark.shadow4(a)web.de> --- dlls/ntdll/tests/pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/tests/pipe.c b/dlls/ntdll/tests/pipe.c index 6f26655b118..0e373dcf7ea 100644 --- a/dlls/ntdll/tests/pipe.c +++ b/dlls/ntdll/tests/pipe.c @@ -2920,13 +2920,13 @@ static void subtest_pipe_name(const struct pipe_name_test *pnt) return; } - ok(pipe != NULL, "expected non-NULL handle, got %p\n", client); + ok(pipe != NULL, "expected non-NULL handle\n"); client = NULL; status = NtCreateFile(&client, SYNCHRONIZE, &attr, &iosb, NULL, 0, FILE_SHARE_READ | FILE_SHARE_WRITE, FILE_OPEN, 0, NULL, 0); ok(status == STATUS_SUCCESS, "Expected success, got %#lx\n", status); - ok(client != NULL, "expected non-NULL handle, got %p\n", client); + ok(client != NULL, "expected non-NULL handle\n"); NtClose(client); if (pnt->no_open_name)
participants (1)
-
Alexandre Julliard