From: Vsevolod Stakhov Date: Sat, 12 May 2018 13:09:31 +0000 (+0100) Subject: [Fix] Fix tables logging X-Git-Tag: 1.7.5~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05658991f0c220893226798b0e1285f946e02b71;p=rspamd.git [Fix] Fix tables logging --- diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c index 2378ea59b..f112b4dfc 100644 --- a/src/lua/lua_logger.c +++ b/src/lua/lua_logger.c @@ -405,7 +405,7 @@ lua_logger_out_table (lua_State *L, gint pos, gchar *outbuf, gsize len) r = rspamd_snprintf (d, remain + 1, "[%d] = ", i); MOVE_BUF(d, remain, r); - r = lua_logger_out_type (L, -1, d, remain); + r = lua_logger_out_type (L, lua_gettop (L), d, remain); MOVE_BUF(d, remain, r); first = FALSE;