diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-04 16:16:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-04 16:16:36 +0100 |
commit | 80496e374e44f43664962b918a4b852f9b780c1b (patch) | |
tree | 3e4002fc8c83029d56a02a0b4e03abb3335e76f0 /src/lua/lua_util.c | |
parent | 2dc5de79ac733dde4c574e970dadf588205d57d5 (diff) | |
download | rspamd-80496e374e44f43664962b918a4b852f9b780c1b.tar.gz rspamd-80496e374e44f43664962b918a4b852f9b780c1b.zip |
[Fix] Sort keys when getting data from Lua when filling rules
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 026e6e822..0057dc472 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1614,11 +1614,10 @@ lua_util_glob (lua_State *L) LUA_TRACE_POINT; const gchar *pattern; glob_t gl; - gint top, i, flags; + gint top, i, flags = 0; top = lua_gettop (L); memset (&gl, 0, sizeof (gl)); - flags = GLOB_NOSORT; for (i = 1; i <= top; i ++, flags |= GLOB_APPEND) { pattern = luaL_checkstring (L, i); |