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

git at icinga.org git at icinga.org
Thu Aug 25 11:57:51 CEST 2016


Module: icinga2
Branch: master
Commit: 092f2ee0993a0fdf83996711a17d355ff58ea5e1
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=092f2ee0993a0fdf83996711a17d355ff58ea5e1

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 a1b0a81..3b84e89 100644
--- a/lib/base/workqueue.cpp
+++ b/lib/base/workqueue.cpp
@@ -33,7 +33,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