From 05658991f0c220893226798b0e1285f946e02b71 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 12 May 2018 14:09:31 +0100 Subject: [PATCH] [Fix] Fix tables logging --- src/lua/lua_logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5