Software /
code /
prosody
Diff
util-src/windows.c @ 6411:6c8f6364bc48
util-src/*.c: Don't create globals when loaded
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 16 Sep 2014 21:56:18 +0200 |
parent | 5864:22b1d18eb919 |
child | 6412:0e94f89d0e62 |
line wrap: on
line diff
--- a/util-src/windows.c Thu Sep 11 00:55:51 2014 +0200 +++ b/util-src/windows.c Tue Sep 16 21:56:18 2014 +0200 @@ -81,7 +81,8 @@ }; 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);