summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 09:59:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 09:59:52 +0000
commit6bc5286496c43a0ee9f1a616507c7aa03e28450c (patch)
tree9a6ed4374aaf129777560ba58f608368fb8754df /src/lua/lua_common.c
parent153e64677902c1acc7a1e8ee21d5b634d8a65885 (diff)
downloadrspamd-6bc5286496c43a0ee9f1a616507c7aa03e28450c.tar.gz
rspamd-6bc5286496c43a0ee9f1a616507c7aa03e28450c.zip
Refactor UCL API
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r--src/lua/lua_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index eb3b7de3f..960d3457d 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -173,9 +173,9 @@ rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg)
return;
}
- opts = ucl_object_find_key (cfg->rcl_obj, "options");
+ opts = ucl_object_lookup (cfg->rcl_obj, "options");
if (opts != NULL) {
- opts = ucl_object_find_key (opts, "lua_path");
+ opts = ucl_object_lookup (opts, "lua_path");
if (opts != NULL && ucl_object_type (opts) == UCL_STRING) {
additional_path = ucl_object_tostring (opts);
}