]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
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 0ceaae216a166257fbb6b7c547169f68c4f683e6..c4073ad7d710ca03cf52dff7ed24d7c265b7d0d6 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 */