diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-23 18:27:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-23 18:27:08 +0000 |
commit | cd6aeb455943ee63e15f3032a5cf44f69538afba (patch) | |
tree | 25dd8d40b2962955fcb90342a5416d85ceee8b35 | |
parent | f9f3cf0504f61231343b57eea40e836245bf7ff1 (diff) | |
download | rspamd-cd6aeb455943ee63e15f3032a5cf44f69538afba.tar.gz rspamd-cd6aeb455943ee63e15f3032a5cf44f69538afba.zip |
[Minor] Add fallback
-rw-r--r-- | src/libmime/mime_encoding.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c index 990eda62e..3f79465e4 100644 --- a/src/libmime/mime_encoding.c +++ b/src/libmime/mime_encoding.c @@ -670,7 +670,8 @@ rspamd_mime_charset_find_by_content_maybe_split (const gchar *in, gsize inlen) return c3; } - /* All charsets are distinct */ + /* All charsets are distinct. Use the one from the top */ + return c1; } return NULL; |