mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
sockfilt.c: zero initialize variable
This commit is contained in:
parent
6a03f6368f
commit
6fd97fca88
@ -738,6 +738,7 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* try to handle the event with the WINSOCK2 functions */
|
/* try to handle the event with the WINSOCK2 functions */
|
||||||
|
wsanetevents.lNetworkEvents = 0;
|
||||||
error = WSAEnumNetworkEvents(fds, handle, &wsanetevents);
|
error = WSAEnumNetworkEvents(fds, handle, &wsanetevents);
|
||||||
if(error != SOCKET_ERROR) {
|
if(error != SOCKET_ERROR) {
|
||||||
/* remove from descriptor set if not ready for read/accept/close */
|
/* remove from descriptor set if not ready for read/accept/close */
|
||||||
|
Loading…
Reference in New Issue
Block a user