From: Vsevolod Stakhov Date: Wed, 11 Mar 2020 14:32:33 +0000 (+0000) Subject: [Minor] Filter nil values in rspamd_config:get_all_opt X-Git-Tag: 2.5~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af30ca1eb035d6824107c1f55613099c6331cbdb;p=thirdparty%2Frspamd.git [Minor] Filter nil values in rspamd_config:get_all_opt --- diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 8afe8fbfea..fe4167a5b1 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1035,7 +1035,7 @@ lua_config_get_all_opt (lua_State * L) while ((cur_elt = ucl_object_iterate_safe (it, true))) { lua_pushstring (L, ucl_object_key (cur_elt)); - ucl_object_push_lua (L, cur_elt, true); + ucl_object_push_lua_filter_nil (L, cur_elt, true); lua_settable (L, -3); } } @@ -1050,7 +1050,7 @@ lua_config_get_all_opt (lua_State * L) LL_FOREACH (obj, cur) { lua_pushinteger (L, i++); - ucl_object_push_lua (L, cur, true); + ucl_object_push_lua_filter_nil (L, cur, true); lua_settable (L, -3); }