[PATCH 2/4] Make sure that a structure is initialized. (LLVM/Clang)
Lauri Kenttä
lauri.kentta at gmail.com
Fri Jun 10 15:38:38 CDT 2011
---
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 1c07802..4697ade 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)
--
1.7.5.2
More information about the wine-patches
mailing list