[icinga-checkins] icinga.org: icinga2/feature/cxx11: Fix compiler warning in dbg_eval

git at icinga.org git at icinga.org
Thu Aug 25 06:46:31 CEST 2016


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Aug 25 06:44:41 2016 +0200

Fix compiler warning in dbg_eval

refs #12534

---

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

diff --git a/lib/cli/consolecommand.cpp b/lib/cli/consolecommand.cpp
index 786cf64..ed7b37e 100644
--- a/lib/cli/consolecommand.cpp
+++ b/lib/cli/consolecommand.cpp
@@ -68,7 +68,7 @@ extern "C" void dbg_inspect_object(Object *obj)
 
 extern "C" void dbg_eval(const char *text)
 {
-	Expression *expr;
+	Expression *expr = NULL;
 
 	try {
 		ScriptFrame frame;



More information about the icinga-checkins mailing list