From 22ea1b809e39676202d8f093d094f57e1bc6cff9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 1 Jun 2018 21:24:31 +0100 Subject: [Minor] Fix iteration --- src/rspamadm/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rspamadm/commands.c') diff --git a/src/rspamadm/commands.c b/src/rspamadm/commands.c index 83a0507ec..0b4e50c48 100644 --- a/src/rspamadm/commands.c +++ b/src/rspamadm/commands.c @@ -269,7 +269,7 @@ rspamadm_fill_lua_commands (lua_State *L, GPtrArray *dest) rspamd_lua_table_size (L, -1), g_free); - for (lua_pushnil (L); lua_next (L, -2); lua_pop (L, 2)) { + for (lua_pushnil (L); lua_next (L, -2); lua_pop (L, 1)) { if (lua_isstring (L, -1)) { g_ptr_array_add (lua_cmd->aliases, g_strdup (lua_tostring (L, -1))); -- cgit v1.2.3