[icinga-checkins] icinga.org: icinga2/master: Fix incorrect variable type in the FilterArrayToInt function

git at icinga.org git at icinga.org
Sat Aug 27 12:26:14 CEST 2016


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Aug 27 12:23:09 2016 +0200

Fix incorrect variable type in the FilterArrayToInt function

refs #12509

---

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

diff --git a/lib/icinga/customvarobject.cpp b/lib/icinga/customvarobject.cpp
index 5b7cda9..24bb71e 100644
--- a/lib/icinga/customvarobject.cpp
+++ b/lib/icinga/customvarobject.cpp
@@ -36,7 +36,7 @@ void CustomVarObject::ValidateVars(const Dictionary::Ptr& value, const Validatio
 
 int icinga::FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue)
 {
-	Value resultTypeFilter;
+	int resultTypeFilter;
 
 	if (!typeFilters)
 		return defaultValue;



More information about the icinga-checkins mailing list