[icinga-checkins] icinga.org: icinga2/feature/check_nscp-12874: Fix compiler error

git at icinga.org git at icinga.org
Fri Oct 14 14:22:19 CEST 2016


Module: icinga2
Branch: feature/check_nscp-12874
Commit: cd0aeed1f607acf22219c4f1dd13a477439f1e9c
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=cd0aeed1f607acf22219c4f1dd13a477439f1e9c

Author: Jean Flach <jean-marcel.flach at netways.de>
Date:   Fri Oct 14 14:17:13 2016 +0200

Fix compiler error

Windows ignores the standard

refs #12883

---

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

diff --git a/lib/remote/url.cpp b/lib/remote/url.cpp
index fff11ad..97d3230 100644
--- a/lib/remote/url.cpp
+++ b/lib/remote/url.cpp
@@ -260,7 +260,7 @@ String Url::Format(bool print_credentials) const
 			// Just one (or one empty) value
 			if (kv.second.size() == 1) {
 				param += key;
-				param += kv.second[0].IsEmpty() ? Empty : "=" + Utility::EscapeString(kv.second[0], ACQUERY_ENCODE, false);
+				param += kv.second[0].IsEmpty() ? "" : "=" + Utility::EscapeString(kv.second[0], ACQUERY_ENCODE, false);
 				continue;
 			}
 



More information about the icinga-checkins mailing list