From: Marc Hoersken Date: Tue, 22 Apr 2014 12:53:16 +0000 (+0200) Subject: sockfilt.c: zero initialize variable X-Git-Tag: curl-7_37_0~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6fd97fca88fc54e661c8fdb89dcd41c2e08a05da;p=thirdparty%2Fcurl.git sockfilt.c: zero initialize variable --- diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 0ceaae216a..c4073ad7d7 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 */