From: Vsevolod Stakhov Date: Tue, 13 Apr 2021 15:14:06 +0000 (+0100) Subject: [Minor] Distinguish nil from none X-Git-Tag: 3.0~502 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd58d2b9315655e1d0d02a47f667937ae0851c82;p=rspamd.git [Minor] Distinguish nil from none --- diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index ad938c052..f18792c6c 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -1252,7 +1252,7 @@ lua_url_cbdata_fill_exclude_include (lua_State *L, } } } - else if (pos_arg_type == LUA_TNIL) { + else if (pos_arg_type == LUA_TNIL || pos_arg_type == LUA_TNONE) { /* Include all flags */ include_flags_mask = ~0U; } @@ -1280,7 +1280,7 @@ lua_url_cbdata_fill_exclude_include (lua_State *L, } } } - else if (pos_arg_type == LUA_TNIL) { + else if (pos_arg_type == LUA_TNIL || pos_arg_type == LUA_TNONE) { /* Empty all exclude flags */ exclude_flags_mask = 0U; }