]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix tables logging
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 May 2018 13:09:31 +0000 (14:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 May 2018 13:47:15 +0000 (14:47 +0100)
src/lua/lua_logger.c

index 2378ea59b6e297a499244f54ebfbf191868efe5b..f112b4dfc0c4d9d2cb94cb4a1daf493e88a96301 100644 (file)
@@ -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;