mirror of https://github.com/Icinga/icinga2.git
Fix crash in VMOps::FunctionCall
fixes #8952 Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
This commit is contained in:
parent
1c7e7dac60
commit
5cd2056f43
|
@ -89,7 +89,10 @@ public:
|
|||
|
||||
static inline Value FunctionCall(ScriptFrame& frame, const Value& self, const Function::Ptr& func, const std::vector<Value>& arguments)
|
||||
{
|
||||
ScriptFrame vframe = (self.IsEmpty()) ? ScriptFrame() : ScriptFrame(self);
|
||||
ScriptFrame vframe;
|
||||
|
||||
if (!self.IsEmpty())
|
||||
vframe.Self = self;
|
||||
|
||||
return func->Invoke(arguments);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue