ws2_32/tests: Make sure that a structure is initialized (LLVM/Clang).

This commit is contained in:
Lauri Kenttä 2011-06-10 23:38:38 +03:00 committed by Alexandre Julliard
parent 717bd66440
commit 69ab564f5d
1 changed files with 2 additions and 1 deletions

View File

@ -3937,6 +3937,8 @@ static void test_WSARecv(void)
DWORD dwret;
BOOL bret;
memset(&ov, 0, sizeof(ov));
tcp_socketpair(&src, &dest);
if (src == INVALID_SOCKET || dest == INVALID_SOCKET)
{
@ -3948,7 +3950,6 @@ static void test_WSARecv(void)
bufs.buf = buf;
flags = 0;
memset(&ov, 0, sizeof(ov));
ov.hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
ok(ov.hEvent != NULL, "could not create event object, errno = %d\n", GetLastError());
if (!ov.hEvent)