From: Marek VavruĊĦa Date: Mon, 13 Jul 2015 13:34:37 +0000 (+0200) Subject: daemon/lua: fixed output printing X-Git-Tag: v1.0.0-beta1~77^2~13^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70d315516562daf186b2722a498454c41f0995ca;p=thirdparty%2Fknot-resolver.git daemon/lua: fixed output printing --- diff --git a/daemon/lua/sandbox.lua b/daemon/lua/sandbox.lua index a7ca501c0..53559156e 100644 --- a/daemon/lua/sandbox.lua +++ b/daemon/lua/sandbox.lua @@ -141,7 +141,7 @@ function table_print (tt, indent, done) if type (value) == "table" and not done [value] then done [value] = true result = result .. string.format("[%s] => {\n", tostring (key)) - table_print (value, indent + 4, done) + result = result .. table_print (value, indent + 4, done) result = result .. string.rep (" ", indent) result = result .. "}\n" else