From 56a3b0cab7f924fdb53ea70f0025229dcbd1bb44 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 11 Aug 2015 13:58:02 +0200 Subject: [PATCH] Use an empty dictionary for the 'this' scope when executing commands with Livestatus fixes #9883 --- lib/livestatus/livestatusquery.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/livestatus/livestatusquery.cpp b/lib/livestatus/livestatusquery.cpp index 9d904805e..71ad4eb5c 100644 --- a/lib/livestatus/livestatusquery.cpp +++ b/lib/livestatus/livestatusquery.cpp @@ -635,6 +635,7 @@ void LivestatusQuery::ExecuteScriptHelper(const Stream::Ptr& stream) try { ScriptFrame frame; frame.Locals = lsf.Locals; + frame.Self = lsf.Locals; result = expr->Evaluate(frame); } catch (const ScriptError& ex) { delete expr;