From bcab7a928a24ff7da693c6c8370ab18ae19284bd Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 16 Sep 2014 21:56:18 +0200 Subject: util-src/*.c: Don't create globals when loaded --- util-src/signal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util-src/signal.c') 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, -- cgit v1.2.3