summaryrefslogtreecommitdiff
path: root/src/socketengines
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-10-21 20:27:10 -0400
committerAdam <Adam@anope.org>2017-10-21 20:27:10 -0400
commit7b2a78aa10e037d8d4b56914bc43651f552c0cb3 (patch)
tree208af48641de550e5439abf086c1ea9a1b42f61d /src/socketengines
parent0189455f5d9a0ae8ae6afd9c1ec6585c4cfb6f19 (diff)
socketengine_poll: fix initialization fd_mappings
Diffstat (limited to 'src/socketengines')
-rw-r--r--src/socketengines/socketengine_poll.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengines/socketengine_poll.cpp b/src/socketengines/socketengine_poll.cpp
index 59991d80d..a5e86ba82 100644
--- a/src/socketengines/socketengine_poll.cpp
+++ b/src/socketengines/socketengine_poll.cpp
@@ -36,7 +36,7 @@ namespace
std::vector<struct pollfd> events(16);
/** This vector maps fds to an index in the events array.
*/
- std::vector<int> fd_mappings(16);
+ std::vector<int> fd_mappings(16, -1);
}
void SocketEngine::Init()