mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
util-src/*.c: Don't create globals when loaded
This commit is contained in:
parent
a685dfb89e
commit
c57e98cd7d
6 changed files with 11 additions and 11 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue