Commit 57e37c2a authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

ntdll/tests: Fix uninitialized read in ok (Coverity).

parent df90a325
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment