Software /
code /
prosody
Diff
util-src/signal.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 | 3284:867d6413fe0a |
child | 6412:0e94f89d0e62 |
line wrap: on
line diff
--- a/util-src/signal.c Thu Sep 11 00:55:51 2014 +0200 +++ b/util-src/signal.c Tue Sep 16 21:56:18 2014 +0200 @@ -384,7 +384,8 @@ 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,