]> source.dussan.org Git - rspamd.git/commitdiff
Use magic_load instead of magic_compile
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Dec 2015 18:28:46 +0000 (18:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Dec 2015 18:28:46 +0000 (18:28 +0000)
src/libutil/util.c

index 10b3889777587b473931989cc58f383951207d37..6b3bcfb429166e9dac8224b0fec91b60131245ab 100644 (file)
@@ -1980,7 +1980,7 @@ rspamd_init_libs (void)
 #endif
        ctx->libmagic = magic_open (MAGIC_MIME|MAGIC_NO_CHECK_COMPRESS|
                        MAGIC_NO_CHECK_ELF|MAGIC_NO_CHECK_TAR);
-       magic_compile (ctx->libmagic, NULL);
+       magic_load (ctx->libmagic, NULL);
        REF_INIT_RETAIN (ctx, rspamd_deinit_libs);
 
        return ctx;