]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Set lua path in stat_convert
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 21 Feb 2018 10:54:46 +0000 (10:54 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 21 Feb 2018 10:54:46 +0000 (10:54 +0000)
src/rspamadm/stat_convert.c

index 67d943f7bb7f0db693dbcc72dbca7af1eecd7571..e4cf24629a19af8e510e83c6c0b836d6bbffa5c3 100644 (file)
@@ -236,7 +236,7 @@ rspamadm_statconvert (gint argc, gchar **argv)
        }
 
        L = rspamd_lua_init ();
-       rspamd_lua_set_path (L, NULL, NULL);
+       rspamd_lua_set_path (L, obj, ucl_vars);
        ucl_object_insert_key (obj, ucl_object_frombool (reset_previous),
                        "reset_previous", 0, false);