aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_encoding.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-19 17:30:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-19 17:30:38 +0000
commitb130109429aa4046e682324de3ac2f31b31fe563 (patch)
treecc959a6ab86a4fcdbe5dd29e363f5ae945c81bcc /src/libmime/mime_encoding.c
parent4231a70cc7e5588ecbcefdcab39f0efd8c3be158 (diff)
downloadrspamd-b130109429aa4046e682324de3ac2f31b31fe563.tar.gz
rspamd-b130109429aa4046e682324de3ac2f31b31fe563.zip
[Minor] Eek, try to workaround libicu stupidity
Diffstat (limited to 'src/libmime/mime_encoding.c')
-rw-r--r--src/libmime/mime_encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c
index 4ddba8ca0..d98f96b85 100644
--- a/src/libmime/mime_encoding.c
+++ b/src/libmime/mime_encoding.c
@@ -284,7 +284,7 @@ rspamd_mime_detect_charset (const rspamd_ftok_t *in, rspamd_mempool_t *pool)
s = g_hash_table_lookup (sub_hash, ret);
if (s) {
- return ucnv_getCanonicalName (s->canon, "MIME", &uc_err);
+ ret = (char *)s->canon;
}
/* Just fucking stupid */