From 384687ffa49ac61dddb91be1ec5de1572ba2c036 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 9 Mar 2017 01:20:59 +0100 Subject: util-src: Specify size of various tables to be allocated --- util-src/crand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src/crand.c') 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"); -- cgit v1.2.3