aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-16 21:56:18 +0200
committerKim Alvefur <zash@zash.se>2014-09-16 21:56:18 +0200
commitbcab7a928a24ff7da693c6c8370ab18ae19284bd (patch)
tree7a2f8f679b522db52d967a34eb806b8f73ba59c4 /util-src/pposix.c
parentf41908a42c7e4f8397b52536e5e32c771b07a096 (diff)
downloadprosody-bcab7a928a24ff7da693c6c8370ab18ae19284bd.tar.gz
prosody-bcab7a928a24ff7da693c6c8370ab18ae19284bd.zip
util-src/*.c: Don't create globals when loaded
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");