]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix gc in lua tests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 May 2019 16:53:10 +0000 (17:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 May 2019 16:53:10 +0000 (17:53 +0100)
test/rspamd_lua_test.c

index 5b310a7db9bd29ebdc15cb879990bc0abccd3ebd..fc7979ee8ebe9487be5624e5b945d74dcbce9133 100644 (file)
@@ -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;