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/providers/imap/camel-imap-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/providers/imap') 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