diff options
Diffstat (limited to 'src/lua/lua_mempool.c')
-rw-r--r-- | src/lua/lua_mempool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c index 9d6168fa3..7b95d6c0c 100644 --- a/src/lua/lua_mempool.c +++ b/src/lua/lua_mempool.c @@ -228,8 +228,8 @@ luaopen_mempool (lua_State * L) lua_pushstring (L, "rspamd{mempool}"); lua_rawset (L, -3); - luaL_openlib (L, NULL, mempoollib_m, 0); - luaL_openlib(L, "rspamd_mempool", mempoollib_f, 0); + luaL_register (L, NULL, mempoollib_m); + luaL_register (L, "rspamd_mempool", mempoollib_f); lua_pop (L, 1); /* remove metatable from stack */ |