aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/ringbuffer.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-10 16:59:21 +0100
committerKim Alvefur <zash@zash.se>2017-03-10 16:59:21 +0100
commitef417ab41d5ee0578f1d108c574930bde6bc9262 (patch)
treeaf21ea2d626caddb6c0e6f4b50e16a21dfb2b2f8 /util-src/ringbuffer.c
parent83dce276409b1cdf2c5475dd06956cf50ee1ce6a (diff)
parentd367c8c3ce3f0c0665a402dc9eadde29aade7b61 (diff)
downloadprosody-ef417ab41d5ee0578f1d108c574930bde6bc9262.tar.gz
prosody-ef417ab41d5ee0578f1d108c574930bde6bc9262.zip
Merge 0.10->trunk
Diffstat (limited to 'util-src/ringbuffer.c')
-rw-r--r--util-src/ringbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-src/ringbuffer.c b/util-src/ringbuffer.c
index 2a13903c..8d9e49e6 100644
--- a/util-src/ringbuffer.c
+++ b/util-src/ringbuffer.c
@@ -187,7 +187,7 @@ int luaopen_util_ringbuffer(lua_State *L) {
lua_pushcfunction(L, rb_length);
lua_setfield(L, -2, "__len");
- lua_newtable(L); /* __index */
+ lua_createtable(L, 0, 7); /* __index */
{
lua_pushcfunction(L, rb_find);
lua_setfield(L, -2, "find");
@@ -207,7 +207,7 @@ int luaopen_util_ringbuffer(lua_State *L) {
lua_setfield(L, -2, "__index");
}
- lua_newtable(L);
+ lua_createtable(L, 0, 1);
lua_pushcfunction(L, rb_new);
lua_setfield(L, -2, "new");
return 1;