diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-01 21:24:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-01 21:24:31 +0100 |
commit | 22ea1b809e39676202d8f093d094f57e1bc6cff9 (patch) | |
tree | f5b94d113daaeb6d8118ab40d14460c0f02e3a34 /src/rspamadm/commands.c | |
parent | 6d2dd994b98aa0fe9a96668dec1b78f4cca10861 (diff) | |
download | rspamd-22ea1b809e39676202d8f093d094f57e1bc6cff9.tar.gz rspamd-22ea1b809e39676202d8f093d094f57e1bc6cff9.zip |
[Minor] Fix iteration
Diffstat (limited to 'src/rspamadm/commands.c')
-rw-r--r-- | src/rspamadm/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
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))); |