diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-11 14:56:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-11 14:56:29 +0000 |
commit | ec52f9b4a1d093e23076d4fd8499b9ca7fe0a52c (patch) | |
tree | aeb1e2c2eadc5eabb9ae91e242d1d66ee8e6f813 | |
parent | 2cb31b814247db35456322489ae3ecea7499dd8f (diff) | |
download | rspamd-ec52f9b4a1d093e23076d4fd8499b9ca7fe0a52c.tar.gz rspamd-ec52f9b4a1d093e23076d4fd8499b9ca7fe0a52c.zip |
Revert "[Minor] Filter nil values in rspamd_config:get_all_opt"
This reverts commit af30ca1eb035d6824107c1f55613099c6331cbdb.
-rw-r--r-- | src/lua/lua_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index fe4167a5b..8afe8fbfe 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_filter_nil (L, cur_elt, true); + ucl_object_push_lua (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_filter_nil (L, cur, true); + ucl_object_push_lua (L, cur, true); lua_settable (L, -3); } |