diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-09 01:20:59 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-09 01:20:59 +0100 |
commit | 384687ffa49ac61dddb91be1ec5de1572ba2c036 (patch) | |
tree | bbd6a9c2b24a4bbf263cc2645276de0bcdfd23ae /util-src/table.c | |
parent | e1a8887ccd0b60d06eb823242572b4526014fe80 (diff) | |
download | prosody-384687ffa49ac61dddb91be1ec5de1572ba2c036.tar.gz prosody-384687ffa49ac61dddb91be1ec5de1572ba2c036.zip |
util-src: Specify size of various tables to be allocated
Diffstat (limited to 'util-src/table.c')
-rw-r--r-- | util-src/table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/table.c b/util-src/table.c index f1cd9e12..9a9553fc 100644 --- a/util-src/table.c +++ b/util-src/table.c @@ -24,7 +24,7 @@ int luaopen_util_table(lua_State *L) { #if (LUA_VERSION_NUM > 501) luaL_checkversion(L); #endif - lua_newtable(L); + lua_createtable(L, 0, 2); lua_pushcfunction(L, Lcreate_table); lua_setfield(L, -2, "create"); lua_pushcfunction(L, Lpack); |