diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-11 17:16:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-11 17:16:02 +0100 |
commit | 9536a92ba1589a7156b1df30ca5423f5267f5336 (patch) | |
tree | fef2f46fbd7262f51fc868c7ceca77f24996b5f9 /src/lua | |
parent | 9f97b04e03c4662d31f7158747fe11481949ce68 (diff) | |
download | rspamd-9536a92ba1589a7156b1df30ca5423f5267f5336.tar.gz rspamd-9536a92ba1589a7156b1df30ca5423f5267f5336.zip |
[Fix] Fix returning boolean from Lua
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 6ce4179f1..7b88abb22 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1213,7 +1213,7 @@ lua_util_strequal_caseless (lua_State *L) return luaL_error (L, "invalid arguments"); } - lua_pushboolean (L, (ret == 0)); + lua_pushboolean (L, (ret == 0) ? true : false); return 1; } |