aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-05 06:20:29 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-05 06:20:29 +0800
commitffa73cbd5ca9dc306086deba95538d6dee89ec6e (patch)
tree96b38a7624c0fabd258818a06a89cf3d2edbc0a7 /camel/camel-mime-utils.c
parentf4feb971049109c256885840cae709a8f840eea9 (diff)
downloadgsoc2013-evolution-ffa73cbd5ca9dc306086deba95538d6dee89ec6e.tar.gz
gsoc2013-evolution-ffa73cbd5ca9dc306086deba95538d6dee89ec6e.tar.zst
gsoc2013-evolution-ffa73cbd5ca9dc306086deba95538d6dee89ec6e.zip
Don't try setting a content-type parameter if either the name or value is
2001-12-12 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-summary.c (content_info_load): Don't try setting a content-type parameter if either the name or value is NULL. * camel-mime-utils.c (header_set_param): NULL-protection. svn path=/trunk/; revision=15248
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 0834a73814..f00c5d21a8 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -2093,7 +2093,10 @@ struct _header_param *
header_set_param (struct _header_param **l, const char *name, const char *value)
{
struct _header_param *p = (struct _header_param *)l, *pn;
-
+
+ if (name == NULL)
+ return NULL;
+
while (p->next) {
pn = p->next;
if (!strcasecmp (pn->name, name)) {