Module: wine Branch: master Commit: 69ab564f5d4195c4205a28cf6a3077f3f055b35d URL: http://source.winehq.org/git/wine.git/?a=commit;h=69ab564f5d4195c4205a28cf6a...
Author: Lauri Kenttä lauri.kentta@gmail.com Date: Fri Jun 10 23:38:38 2011 +0300
ws2_32/tests: Make sure that a structure is initialized (LLVM/Clang).
---
dlls/ws2_32/tests/sock.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 44539a8..ef01ed2 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -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)