From: Petr Špaček Date: Thu, 11 Apr 2019 12:44:06 +0000 (+0200) Subject: table_print: fix indentation X-Git-Tag: v4.0.0~9^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf7d4011cb19d024408c81943cb17fd481a8e9b1;p=thirdparty%2Fknot-resolver.git table_print: fix indentation --- diff --git a/daemon/lua/sandbox.lua.in b/daemon/lua/sandbox.lua.in index 6996d479d..1b4e775d1 100644 --- a/daemon/lua/sandbox.lua.in +++ b/daemon/lua/sandbox.lua.in @@ -386,14 +386,14 @@ local function funcsign(f) table.insert(func_args, k) end end - if debug.getlocal(2, -1) then - -- vararg function - table.insert(func_args, "...") + if debug.getlocal(2, -1) then + -- vararg function + table.insert(func_args, "...") + end + debug.sethook(oldhook) + error('aborting the call to introspected function') end - debug.sethook(oldhook) - error('aborting the call to introspected function') end - end oldhook = debug.sethook(hook, "c") -- invoke hook() on function call -- fake arguments, necessary to detect vararg functions local fakearg = {}