[icinga-checkins] icinga.org: icinga2/master: Fix i2tcl module

git at icinga.org git at icinga.org
Fri Aug 12 15:24:36 CEST 2016


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Aug 12 15:24:04 2016 +0200

Fix i2tcl module

refs #12393

---

 contrib/i2eval/i2tcl.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/i2eval/i2tcl.cpp b/contrib/i2eval/i2tcl.cpp
index 2455045..2790244 100644
--- a/contrib/i2eval/i2tcl.cpp
+++ b/contrib/i2eval/i2tcl.cpp
@@ -84,7 +84,7 @@ static Value i2_call_tcl(const String& command, const String& mtype, const std::
 
 void i2_register_command(const char *icmd, const char *tcmd, const char *mtype, Tcl_Interp *interp)
 {
-	Function::Ptr sf = new Function(boost::bind(i2_call_tcl, String(tcmd), String(mtype), _1));
+	Function::Ptr sf = new Function(icmd, boost::bind(i2_call_tcl, String(tcmd), String(mtype), _1));
 	ScriptGlobal::Set(icmd, sf);
 }
 



More information about the icinga-checkins mailing list