From 48820eabf414852ad255234d955ea011d6f71ae4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 16 Nov 2001 23:19:55 +0000 Subject: Abort if body == NULL. 2001-11-16 Jeffrey Stedfast * providers/imap/camel-imap-utils.c (imap_parse_body): Abort if body == NULL. svn path=/trunk/; revision=14738 --- camel/ChangeLog | 3 +++ camel/providers/imap/camel-imap-utils.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 2d0cb690ee..801b87ca30 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2001-11-16 Jeffrey Stedfast + * providers/imap/camel-imap-utils.c (imap_parse_body): Abort if + body == NULL. + * camel-mime-filter-tohtml.c (camel_mime_filter_tohtml_new): New mime filter to convert plain text to html. diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index f7c63ebcc0..d5466bf9ac 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -475,7 +475,7 @@ imap_parse_body (char **body_p, CamelFolder *folder, CamelContentType *type; int len; - if (*body++ != '(') { + if (!body || *body++ != '(') { *body_p = NULL; return; } -- cgit v1.2.3