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 | d367c8c3ce3f0c0665a402dc9eadde29aade7b61 (patch) | |
tree | bbd6a9c2b24a4bbf263cc2645276de0bcdfd23ae /util-src/net.c | |
parent | b414eafb0bc86658cd7fbfee52c9170b79c76662 (diff) | |
download | prosody-d367c8c3ce3f0c0665a402dc9eadde29aade7b61.tar.gz prosody-d367c8c3ce3f0c0665a402dc9eadde29aade7b61.zip |
util-src: Specify size of various tables to be allocated
Diffstat (limited to 'util-src/net.c')
-rw-r--r-- | util-src/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/net.c b/util-src/net.c index 35f2c362..bb159d57 100644 --- a/util-src/net.c +++ b/util-src/net.c @@ -134,7 +134,7 @@ int luaopen_util_net(lua_State *L) { { NULL, NULL } }; - lua_newtable(L); + lua_createtable(L, 0, 1); luaL_setfuncs(L, exports, 0); return 1; } |