aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */