From add9643384954079d7975707b3476ca927640849 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 10 May 2019 17:53:10 +0100 Subject: [PATCH] [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; -- 2.39.5