diff options
Diffstat (limited to 'src/socketengines')
-rw-r--r-- | src/socketengines/socketengine_epoll.cpp | 2 | ||||
-rw-r--r-- | src/socketengines/socketengine_select.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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); |