aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libucl/lua_ucl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-14 11:42:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-14 14:45:25 +0000
commit9f0a4220decbb0adaf8aa63d506cf01c55e3204c (patch)
treebc1f044bb9b48872137b31b383ff7d89ab9d06a6 /contrib/libucl/lua_ucl.c
parenta755e38112262b462ee2c95eedb71299c688ee5e (diff)
downloadrspamd-9f0a4220decbb0adaf8aa63d506cf01c55e3204c.tar.gz
rspamd-9f0a4220decbb0adaf8aa63d506cf01c55e3204c.zip
[Feature] Allow to reserve elements in libucl
Diffstat (limited to 'contrib/libucl/lua_ucl.c')
-rw-r--r--contrib/libucl/lua_ucl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/libucl/lua_ucl.c b/contrib/libucl/lua_ucl.c
index 7611ecffb..52e787ee5 100644
--- a/contrib/libucl/lua_ucl.c
+++ b/contrib/libucl/lua_ucl.c
@@ -355,7 +355,8 @@ ucl_object_lua_fromtable (lua_State *L, int idx, ucl_string_flags_t flags)
lua_pop (L, 1);
}
}
- else if (is_array) {
+
+ if (is_array) {
#if LUA_VERSION_NUM >= 502
max = lua_rawlen (L, idx);
#else