From: Vsevolod Stakhov Date: Mon, 14 Dec 2015 18:28:46 +0000 (+0000) Subject: Use magic_load instead of magic_compile X-Git-Tag: 1.1.0~303 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d4f8010847e1a509f46bb038a80be64385687e96;p=rspamd.git Use magic_load instead of magic_compile --- diff --git a/src/libutil/util.c b/src/libutil/util.c index 10b388977..6b3bcfb42 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -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;