diff options
Diffstat (limited to 'src/socketengine_epoll.cpp')
-rw-r--r-- | src/socketengine_epoll.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp index 1f4f02548..06124a48c 100644 --- a/src/socketengine_epoll.cpp +++ b/src/socketengine_epoll.cpp @@ -155,6 +155,7 @@ int EPollEngine::DispatchEvents() if (events[j].events & EPOLLOUT) { struct epoll_event ev; + memset(&ev,0,sizeof(struct epoll_event)); ev.events = EPOLLIN; ev.data.fd = events[j].data.fd; int i = epoll_ctl(EngineHandle, EPOLL_CTL_MOD, events[j].data.fd, &ev); |