[vlc-devel] [PATCH 3/4] poll: no need to memset() and test afterwards
Steve Lhomme
robux4 at videolabs.io
Tue Dec 1 10:40:49 CET 2015
---
compat/poll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compat/poll.c b/compat/poll.c
index 98ceb30..da1e71c 100644
--- a/compat/poll.c
+++ b/compat/poll.c
@@ -201,7 +201,7 @@ int poll(struct pollfd *fds, unsigned nfds, int timeout)
WSANETWORKEVENTS ne;
if (WSAEnumNetworkEvents(fds[i].fd, evts[i], &ne))
- memset(&ne, 0, sizeof (ne));
+ continue;
if (ne.lNetworkEvents & FD_CONNECT)
{
--
2.6.3
More information about the vlc-devel
mailing list