diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-15 15:54:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-15 15:54:43 +0000 |
commit | 27e45bef83fe17b339fe345e3455a67b7416e1d3 (patch) | |
tree | a916601653c8eaca9488d7dd55b4de565078047d /src/lua/lua_util.c | |
parent | 46fd25c4dda2e4cc25f662dc5cb5dad0d4380503 (diff) | |
download | rspamd-27e45bef83fe17b339fe345e3455a67b7416e1d3.tar.gz rspamd-27e45bef83fe17b339fe345e3455a67b7416e1d3.zip |
Fix warnings.
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index a5d3a0f87..eda1ede2b 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -436,7 +436,7 @@ lua_util_tokenize_text (lua_State *L) struct process_exception *ex; GArray *res; rspamd_ftok_t *w; - gboolean compat = FALSE, check_sig = FALSE; + gboolean compat = FALSE; if (lua_type (L, 1) == LUA_TSTRING) { in = luaL_checklstring (L, 1, &len); @@ -485,10 +485,6 @@ lua_util_tokenize_text (lua_State *L) compat = lua_toboolean (L, 3); } - if (lua_gettop (L) > 3 && lua_type (L, 4) == LUA_TBOOLEAN) { - check_sig = lua_toboolean (L, 4); - } - if (exceptions) { exceptions = g_list_reverse (exceptions); } |