diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-14 11:42:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-14 14:45:25 +0000 |
commit | 9f0a4220decbb0adaf8aa63d506cf01c55e3204c (patch) | |
tree | bc1f044bb9b48872137b31b383ff7d89ab9d06a6 /contrib/libucl/lua_ucl.c | |
parent | a755e38112262b462ee2c95eedb71299c688ee5e (diff) | |
download | rspamd-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.c | 3 |
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 |