aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index a785be5c2a..f73b8baae6 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -175,7 +175,8 @@ best_charset (GByteArray *buf, CamelMimePartEncodingType *encoding)
{
const char *charset;
- if (best_encoding (buf, "US-ASCII") == CAMEL_MIME_PART_ENCODING_7BIT)
+ *encoding = best_encoding (buf, "US-ASCII");
+ if (*encoding == CAMEL_MIME_PART_ENCODING_7BIT)
return NULL;
charset = mail_config_get_default_charset ();