aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-27 05:56:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-27 05:56:12 +0800
commitd5f77c20a8fac411744b8f444693010f28c9aeb4 (patch)
treebc5392cc0a0525529ce9cbad8cb0ff684c7aae7e /camel/camel-mime-utils.c
parent85c38af8b431e9bc0a6fe8f3c96f21cedb6f935d (diff)
downloadgsoc2013-evolution-d5f77c20a8fac411744b8f444693010f28c9aeb4.tar.gz
gsoc2013-evolution-d5f77c20a8fac411744b8f444693010f28c9aeb4.tar.zst
gsoc2013-evolution-d5f77c20a8fac411744b8f444693010f28c9aeb4.zip
Allow the url to be NULL just like the libc free convention.
2001-07-26 Jeffrey Stedfast <fejj@ximian.com> * camel-url.c (camel_url_free): Allow the url to be NULL just like the libc free convention. svn path=/trunk/; revision=11437
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 13b8253926..8116829b7f 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -2844,7 +2844,7 @@ header_encode_param (const unsigned char *in, gboolean *encoded)
}
void
-header_param_list_format_append(GString *out, struct _header_param *p)
+header_param_list_format_append (GString *out, struct _header_param *p)
{
int used = out->len;
@@ -2861,6 +2861,10 @@ header_param_list_format_append(GString *out, struct _header_param *p)
}
value = header_encode_param (p->value, &encoded);
+ if (!value) {
+ g_warning ("appending parameter %s=%s violates rfc2184", p->name, p->value);
+ value = g_strdup (p->value);
+ }
if (!encoded) {
char *ch;