aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/crand.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-09 01:20:59 +0100
committerKim Alvefur <zash@zash.se>2017-03-09 01:20:59 +0100
commitd367c8c3ce3f0c0665a402dc9eadde29aade7b61 (patch)
treebbd6a9c2b24a4bbf263cc2645276de0bcdfd23ae /util-src/crand.c
parentb414eafb0bc86658cd7fbfee52c9170b79c76662 (diff)
downloadprosody-d367c8c3ce3f0c0665a402dc9eadde29aade7b61.tar.gz
prosody-d367c8c3ce3f0c0665a402dc9eadde29aade7b61.zip
util-src: Specify size of various tables to be allocated
Diffstat (limited to 'util-src/crand.c')
-rw-r--r--util-src/crand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/crand.c b/util-src/crand.c
index ef9da4d2..d4b84327 100644
--- a/util-src/crand.c
+++ b/util-src/crand.c
@@ -100,7 +100,7 @@ int luaopen_util_crand(lua_State *L) {
luaL_checkversion(L);
#endif
- lua_newtable(L);
+ lua_createtable(L, 0, 2);
lua_pushcfunction(L, Lrandom);
lua_setfield(L, -2, "bytes");