aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-04-09 13:55:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-04-09 13:55:45 +0800
commit17c1d1c0fd5c9150bb267a0480097cce0679ccaf (patch)
treee7f3cbe5520d8f1f858021e285ffeff0e7fe372a /camel
parent552a2f3af8e8af5cf03e994a060bc46e374f1252 (diff)
downloadgsoc2013-evolution-17c1d1c0fd5c9150bb267a0480097cce0679ccaf.tar
gsoc2013-evolution-17c1d1c0fd5c9150bb267a0480097cce0679ccaf.tar.gz
gsoc2013-evolution-17c1d1c0fd5c9150bb267a0480097cce0679ccaf.tar.bz2
gsoc2013-evolution-17c1d1c0fd5c9150bb267a0480097cce0679ccaf.tar.lz
gsoc2013-evolution-17c1d1c0fd5c9150bb267a0480097cce0679ccaf.tar.xz
gsoc2013-evolution-17c1d1c0fd5c9150bb267a0480097cce0679ccaf.tar.zst
gsoc2013-evolution-17c1d1c0fd5c9150bb267a0480097cce0679ccaf.zip
NULL-protect the to/from charsets in the g_warning call.
2003-04-09 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-filter-charset.c (camel_mime_filter_charset_new_convert): NULL-protect the to/from charsets in the g_warning call. svn path=/trunk/; revision=20774
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-filter-charset.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index b089b22def..6a875f547b 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2003-04-09 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-filter-charset.c
+ (camel_mime_filter_charset_new_convert): NULL-protect the to/from
+ charsets in the g_warning call.
+
2003-04-08 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #40778. Probably others as well.
diff --git a/camel/camel-mime-filter-charset.c b/camel/camel-mime-filter-charset.c
index 6d5bb4f000..012f1897be 100644
--- a/camel/camel-mime-filter-charset.c
+++ b/camel/camel-mime-filter-charset.c
@@ -263,7 +263,9 @@ camel_mime_filter_charset_new_convert (const char *from_charset, const char *to_
new->ic = e_iconv_open (to_charset, from_charset);
if (new->ic == (iconv_t) -1) {
g_warning ("Cannot create charset conversion from %s to %s: %s",
- from_charset, to_charset, g_strerror (errno));
+ from_charset ? from_charset : "(null)",
+ to_charset ? to_charset : "(null)",
+ g_strerror (errno));
camel_object_unref (new);
new = NULL;
} else {