commit add9643: [Minor] Fix gc in lua tests

Vsevolod Stakhov vsevolod at highsecure.ru
Fri May 10 16:56:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-05-10 17:53:10 +0100
URL: https://github.com/rspamd/rspamd/commit/add9643384954079d7975707b3476ca927640849 (HEAD -> master)

[Minor] Fix gc in lua tests

---
 test/rspamd_lua_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/rspamd_lua_test.c b/test/rspamd_lua_test.c
index 5b310a7db..fc7979ee8 100644
--- a/test/rspamd_lua_test.c
+++ b/test/rspamd_lua_test.c
@@ -58,7 +58,7 @@ traceback (lua_State *L)
 void
 rspamd_lua_test_func (void)
 {
-	lua_State *L = rspamd_lua_init (false);
+	lua_State *L = (lua_State *)rspamd_main->cfg->lua_state;
 	gchar *rp, rp_buf[PATH_MAX], path_buf[PATH_MAX], *tmp, *dir, *pattern;
 	const gchar *old_path;
 	glob_t globbuf;


More information about the Commits mailing list