mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +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
|
@ -384,7 +384,8 @@ int luaopen_util_signal(lua_State *L)
|
|||
int i = 0;
|
||||
|
||||
/* add the library */
|
||||
luaL_register(L, "signal", lsignal_lib);
|
||||
lua_newtable(L);
|
||||
luaL_register(L, NULL, lsignal_lib);
|
||||
|
||||
/* push lua_signals table into the registry */
|
||||
/* put the signals inside the library table too,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue