aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 9cf18fa22..4421bf179 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -900,7 +900,7 @@ lua_config_get_key (lua_State *L)
name = luaL_checklstring(L, 2, &namelen);
if (name && cfg) {
- val = ucl_object_find_keyl(cfg->rcl_obj, name, namelen);
+ val = ucl_object_lookup_len(cfg->rcl_obj, name, namelen);
if (val != NULL) {
ucl_object_push_lua (L, val, val->type != UCL_ARRAY);
}