Fix compiler warnings in ThreadPool::ThreadPool.

Refs #5349
This commit is contained in:
Gunnar Beutner 2013-12-17 07:38:15 +01:00
parent d790162ce3
commit 65b41c51ff
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ using namespace icinga;
int ThreadPool::m_NextID = 1;
ThreadPool::ThreadPool(int max_threads)
: m_ID(m_NextID++), m_Stopped(false), m_MaxThreads(max_threads)
: m_ID(m_NextID++), m_MaxThreads(max_threads), m_Stopped(false)
{
if (m_MaxThreads != -1 && m_MaxThreads < sizeof(m_Queues) / sizeof(m_Queues[0]))
m_MaxThreads = sizeof(m_Queues) / sizeof(m_Queues[0]);