From 53e6b1a6dd7d0f00af93fe59cac4e0a03854605d Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 17 Apr 2015 17:23:08 +0200 Subject: [PATCH] Fix custom attributes with recursive macro function calls fixes #9073 --- lib/icinga/macroprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/macroprocessor.cpp b/lib/icinga/macroprocessor.cpp index 625a4169e..177ef9d35 100644 --- a/lib/icinga/macroprocessor.cpp +++ b/lib/icinga/macroprocessor.cpp @@ -199,7 +199,7 @@ Value MacroProcessor::EvaluateFunction(const Function::Ptr& func, const Resolver resolvers_this->Set("macro", new Function(boost::bind(&MacroProcessor::InternalResolveMacrosShim, _1, boost::cref(resolvers), cr, missingMacro, MacroProcessor::EscapeCallback(), resolvedMacros, useResolvedMacros, - recursionLevel))); + recursionLevel + 1))); ScriptFrame frame(resolvers_this); return func->Invoke(); -- 2.40.0