From 9d5102ed8b0985de418e7acc2613c3ded7fbfe96 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 14 Nov 2006 19:37:05 +0000 Subject: Properly zero the epoll_event in epollengine WantWrite to stop a valgrind warning git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5741 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine_epoll.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/socketengine_epoll.cpp') 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); -- cgit v1.2.3