sockfilt.c: zero initialize variable
authorMarc Hoersken <info@marc-hoersken.de>
Tue, 22 Apr 2014 12:53:16 +0000 (14:53 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Tue, 22 Apr 2014 15:22:42 +0000 (17:22 +0200)
tests/server/sockfilt.c

index 0ceaae2..c4073ad 100644 (file)
@@ -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 */