Software /
code /
prosody
Diff
util-src/pposix.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 | 6156:6b1aee6536e8 |
child | 6413:a552f4170aed |
line wrap: on
line diff
--- a/util-src/pposix.c Thu Sep 11 00:55:51 2014 +0200 +++ b/util-src/pposix.c Tue Sep 16 21:56:18 2014 +0200 @@ -768,7 +768,8 @@ { NULL, NULL } }; - luaL_register(L, "pposix", exports); + lua_newtable(L); + luaL_register(L, NULL, exports); lua_pushliteral(L, "pposix"); lua_setfield(L, -2, "_NAME");