aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-04-14 02:07:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-04-14 02:07:59 +0800
commit359ffdc6d4557e0af57a32d8fb47ee1bb9a1d360 (patch)
tree817a029b57442ff372d2cf5b86dbf4ed3068b86f /mail
parentd06dd98d770514263c8dae716a9ae0d8244cbebc (diff)
downloadgsoc2013-evolution-359ffdc6d4557e0af57a32d8fb47ee1bb9a1d360.tar
gsoc2013-evolution-359ffdc6d4557e0af57a32d8fb47ee1bb9a1d360.tar.gz
gsoc2013-evolution-359ffdc6d4557e0af57a32d8fb47ee1bb9a1d360.tar.bz2
gsoc2013-evolution-359ffdc6d4557e0af57a32d8fb47ee1bb9a1d360.tar.lz
gsoc2013-evolution-359ffdc6d4557e0af57a32d8fb47ee1bb9a1d360.tar.xz
gsoc2013-evolution-359ffdc6d4557e0af57a32d8fb47ee1bb9a1d360.tar.zst
gsoc2013-evolution-359ffdc6d4557e0af57a32d8fb47ee1bb9a1d360.zip
If we get an empty charset string from gconf, don't try to use the result
2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_signature_run_script): If we get an empty charset string from gconf, don't try to use the result to create a charset filter. Real fix for bug #51924. svn path=/trunk/; revision=25443
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-config.c9
2 files changed, 10 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index fb7d2ca35b..f7e82314f4 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,9 @@
2004-04-13 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-config.c (mail_config_signature_run_script): If we get an
+ empty charset string from gconf, don't try to use the result to
+ create a charset filter. Real fix for bug #51924.
+
* mail-config.glade: Removed crackrock usage of GtkFixed as
fillter. Also HIGified some other stuff.
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 93aaa4f99d..b5989cfa4c 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -1144,9 +1144,12 @@ mail_config_signature_run_script (const char *script)
camel_object_unref (stream);
charset = gconf_client_get_string (config->gconf, "/apps/evolution/mail/composer/charset", NULL);
- charenc = (CamelMimeFilter *) camel_mime_filter_charset_new_convert (charset, "utf-8");
- camel_stream_filter_add (filtered_stream, charenc);
- camel_object_unref (charenc);
+ if (charset && *charset) {
+ if ((charenc = (CamelMimeFilter *) camel_mime_filter_charset_new_convert (charset, "utf-8"))) {
+ camel_stream_filter_add (filtered_stream, charenc);
+ camel_object_unref (charenc);
+ }
+ }
g_free (charset);
camel_stream_write_to_stream ((CamelStream *) filtered_stream, (CamelStream *) memstream);