[icinga-checkins] icinga.org: icinga2/master: Fixed uninitialized variable bug.

git at icinga.org git at icinga.org
Mon Feb 11 09:55:41 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Feb 11 06:38:30 2013 +0100

Fixed uninitialized variable bug.

---

 lib/base/process.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/base/process.cpp b/lib/base/process.cpp
index d22a3bb..b6b0d9d 100644
--- a/lib/base/process.cpp
+++ b/lib/base/process.cpp
@@ -148,7 +148,7 @@ void Process::Run(void)
 void Process::WorkerThreadProc(int taskFd)
 {
 	map<int, Process::Ptr> tasks;
-	pollfd *pfds;
+	pollfd *pfds = NULL;
 
 	for (;;) {
 		map<int, Process::Ptr>::iterator it, prev;





More information about the icinga-checkins mailing list