mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-20 12:14:44 +02:00
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)
|
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);
|
return func->Invoke(arguments);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user