From 6fd97fca88fc54e661c8fdb89dcd41c2e08a05da Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Tue, 22 Apr 2014 14:53:16 +0200 Subject: sockfilt.c: zero initialize variable --- tests/server/sockfilt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/server') diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 0ceaae216..c4073ad7d 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -738,6 +738,7 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, } else { /* try to handle the event with the WINSOCK2 functions */ + wsanetevents.lNetworkEvents = 0; error = WSAEnumNetworkEvents(fds, handle, &wsanetevents); if(error != SOCKET_ERROR) { /* remove from descriptor set if not ready for read/accept/close */ -- cgit v1.2.3