From 0c534fb50b464a580c9795f383697a340cfa206e Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 23 Aug 2008 23:23:38 +0000 Subject: Forward port r10234, thanks psychon git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10235 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengines/socketengine_epoll.cpp | 2 +- src/socketengines/socketengine_select.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socketengines') diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 6b8954412..de06103fb 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -152,7 +152,7 @@ int EPollEngine::GetRemainingFds() int EPollEngine::DispatchEvents() { - socklen_t codesize; + socklen_t codesize = sizeof(int); int errcode; int i = epoll_wait(EngineHandle, events, GetMaxFds() - 1, 1000); diff --git a/src/socketengines/socketengine_select.cpp b/src/socketengines/socketengine_select.cpp index f053da6df..25e4c1491 100644 --- a/src/socketengines/socketengine_select.cpp +++ b/src/socketengines/socketengine_select.cpp @@ -92,7 +92,7 @@ int SelectEngine::DispatchEvents() { timeval tval; int sresult = 0; - socklen_t codesize; + socklen_t codesize = sizeof(int); int errcode = 0; FD_ZERO(&wfdset); -- cgit v1.2.3