[icinga-checkins] icinga.org: icinga2/master: Fix exception with __using

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


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Aug 12 12:05:02 2016 +0200

Fix exception with __using

refs #12408

---

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

diff --git a/lib/config/expression.cpp b/lib/config/expression.cpp
index 11ffc9c..bd24225 100644
--- a/lib/config/expression.cpp
+++ b/lib/config/expression.cpp
@@ -910,7 +910,7 @@ ExpressionResult UsingExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhin
 	if (!frame.Imports)
 		frame.Imports = new Array();
 	else
-		frame.Imports = static_pointer_cast<Array>(frame.Imports->Clone());
+		frame.Imports = static_pointer_cast<Array>(frame.Imports->ShallowClone());
 
 	frame.Imports->Add(import);
 



More information about the icinga-checkins mailing list