aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r--util-src/pposix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 9b3e97eb..62bd0339 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -768,7 +768,8 @@ int luaopen_util_pposix(lua_State *L)
{ NULL, NULL }
};
- luaL_register(L, "pposix", exports);
+ lua_newtable(L);
+ luaL_register(L, NULL, exports);
lua_pushliteral(L, "pposix");
lua_setfield(L, -2, "_NAME");