diff options
Diffstat (limited to 'src')
-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 7107511bd..1f4f02548 100644 --- a/src/socketengine_epoll.cpp +++ b/src/socketengine_epoll.cpp @@ -83,6 +83,7 @@ void EPollEngine::WantWrite(EventHandler* eh) * status for us and saves us a call. */ struct epoll_event ev; + memset(&ev,0,sizeof(struct epoll_event)); ev.events = EPOLLOUT; ev.data.fd = eh->GetFd(); int i = epoll_ctl(EngineHandle, EPOLL_CTL_MOD, eh->GetFd(), &ev); |