[icinga-checkins] icinga.org: icinga2/support/2.5: Add missing initializer for WorkQueue:: m_NextTaskID

git at icinga.org git at icinga.org
Mon Aug 29 12:22:51 CEST 2016


Module: icinga2
Branch: support/2.5
Commit: ce2f700614ad69ebb282b3d8db29c6a1f2e23d41
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=ce2f700614ad69ebb282b3d8db29c6a1f2e23d41

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Aug 25 11:57:00 2016 +0200

Add missing initializer for WorkQueue::m_NextTaskID

fixes #12545

---

 lib/base/workqueue.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/base/workqueue.cpp b/lib/base/workqueue.cpp
index c7b62ca..8f96144 100644
--- a/lib/base/workqueue.cpp
+++ b/lib/base/workqueue.cpp
@@ -34,7 +34,7 @@ boost::thread_specific_ptr<WorkQueue *> l_ThreadWorkQueue;
 
 WorkQueue::WorkQueue(size_t maxItems, int threadCount)
 	: m_ID(m_NextID++), m_ThreadCount(threadCount), m_Spawned(false), m_MaxItems(maxItems), m_Stopped(false),
-	  m_Processing(0)
+	  m_Processing(0), m_NextTaskID(0)
 {
 	m_StatusTimer = new Timer();
 	m_StatusTimer->SetInterval(10);



More information about the icinga-checkins mailing list