aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-06-12 06:31:54 +0800
committerDan Winship <danw@src.gnome.org>2001-06-12 06:31:54 +0800
commite3258e5bd7a11c733976c14e559653bc601e617b (patch)
treee80a4d2ed0b1ea86b01f6361d351161e3c2d5421 /composer/e-msg-composer.c
parent909185a3858345e8e2ffbd40944466fe040a1d74 (diff)
downloadgsoc2013-evolution-e3258e5bd7a11c733976c14e559653bc601e617b.tar.gz
gsoc2013-evolution-e3258e5bd7a11c733976c14e559653bc601e617b.tar.zst
gsoc2013-evolution-e3258e5bd7a11c733976c14e559653bc601e617b.zip
Fix again... don't leave *encoding uninitialized in the US-ASCII case.
* e-msg-composer.c (best_charset): Fix again... don't leave *encoding uninitialized in the US-ASCII case. svn path=/trunk/; revision=10193
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 ();