aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-filter-charset.c
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/camel-mime-filter-charset.c
parent552a2f3af8e8af5cf03e994a060bc46e374f1252 (diff)
downloadgsoc2013-evolution-17c1d1c0fd5c9150bb267a0480097cce0679ccaf.tar.gz
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/camel-mime-filter-charset.c')
-rw-r--r--camel/camel-mime-filter-charset.c4
1 files changed, 3 insertions, 1 deletions
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 {