diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-14 18:28:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-14 18:28:46 +0000 |
commit | d4f8010847e1a509f46bb038a80be64385687e96 (patch) | |
tree | 17494609b91a81fb4ac13f11cd9a8badc5a5ced9 /src/libutil/util.c | |
parent | 45384ca0ba44f87a34eb1e1207f6f6b545f457a2 (diff) | |
download | rspamd-d4f8010847e1a509f46bb038a80be64385687e96.tar.gz rspamd-d4f8010847e1a509f46bb038a80be64385687e96.zip |
Use magic_load instead of magic_compile
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |