diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-07-21 11:51:04 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-07-21 11:51:04 -0700 |
commit | 133ea7b1cae8acedf46af9a0ea0610431845fab1 (patch) | |
tree | d9debb137622e458641accfd6c327a6964c77cea /src/lua/lua_cfg_file.c | |
parent | 9da2a2ca3f21763bc4fdc66d64c2936e7cfb5916 (diff) | |
download | rspamd-133ea7b1cae8acedf46af9a0ea0610431845fab1.tar.gz rspamd-133ea7b1cae8acedf46af9a0ea0610431845fab1.zip |
Adopt for the new lua ucl API.
Diffstat (limited to 'src/lua/lua_cfg_file.c')
-rw-r--r-- | src/lua/lua_cfg_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_cfg_file.c b/src/lua/lua_cfg_file.c index fb65f1d37..83ac4545c 100644 --- a/src/lua/lua_cfg_file.c +++ b/src/lua/lua_cfg_file.c @@ -138,7 +138,7 @@ lua_post_load_config (struct rspamd_config *cfg) /* Key must be a string and value must be a table */ name = luaL_checklstring (L, -2, &keylen); if (name != NULL && lua_istable (L, -1)) { - obj = lua_rcl_obj_get (L, -1); + obj = ucl_object_lua_import (L, lua_gettop (L)); if (obj != NULL) { ucl_object_insert_key_merged (cfg->rcl_obj, obj, name, keylen, true); } |