diff options
author | Kim Alvefur <zash@zash.se> | 2014-09-16 21:56:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-09-16 21:56:18 +0200 |
commit | bcab7a928a24ff7da693c6c8370ab18ae19284bd (patch) | |
tree | 7a2f8f679b522db52d967a34eb806b8f73ba59c4 /util-src/windows.c | |
parent | f41908a42c7e4f8397b52536e5e32c771b07a096 (diff) | |
download | prosody-bcab7a928a24ff7da693c6c8370ab18ae19284bd.tar.gz prosody-bcab7a928a24ff7da693c6c8370ab18ae19284bd.zip |
util-src/*.c: Don't create globals when loaded
Diffstat (limited to 'util-src/windows.c')
-rw-r--r-- | util-src/windows.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-src/windows.c b/util-src/windows.c index 3d14ca95..9b79c662 100644 --- a/util-src/windows.c +++ b/util-src/windows.c @@ -81,7 +81,8 @@ static const luaL_Reg Reg[] = }; LUALIB_API int luaopen_util_windows(lua_State *L) { - luaL_register(L, "windows", Reg); + lua_newtable(L); + luaL_register(L, NULL, Reg); lua_pushliteral(L, "version"); /** version */ lua_pushliteral(L, "-3.14"); lua_settable(L,-3); |