diff options
author | Kim Alvefur <zash@zash.se> | 2014-09-16 21:56:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-09-16 21:56:18 +0200 |
commit | c57e98cd7debd8d8ea46159cbbf2eb7597544d4c (patch) | |
tree | 7a2f8f679b522db52d967a34eb806b8f73ba59c4 /util-src/signal.c | |
parent | a685dfb89e5c8895a767011961d2289810b72a1e (diff) | |
download | prosody-c57e98cd7debd8d8ea46159cbbf2eb7597544d4c.tar.gz prosody-c57e98cd7debd8d8ea46159cbbf2eb7597544d4c.zip |
util-src/*.c: Don't create globals when loaded
Diffstat (limited to 'util-src/signal.c')
-rw-r--r-- | util-src/signal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-src/signal.c b/util-src/signal.c index 961d2d3e..405689f5 100644 --- a/util-src/signal.c +++ b/util-src/signal.c @@ -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, |