aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/hashes.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-src/hashes.c')
-rw-r--r--util-src/hashes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c
index 33041e83..7ca00867 100644
--- a/util-src/hashes.c
+++ b/util-src/hashes.c
@@ -203,7 +203,8 @@ static const luaL_Reg Reg[] =
LUALIB_API int luaopen_util_hashes(lua_State *L)
{
- luaL_register(L, "hashes", Reg);
+ lua_newtable(L);
+ luaL_register(L, NULL, Reg);
lua_pushliteral(L, "version"); /** version */
lua_pushliteral(L, "-3.14");
lua_settable(L,-3);