From 56347723d5b1116060f280b9d928a74038938ac2 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 10 Jul 2002 23:34:01 +0000 Subject: Make sure message is non-NULL before setting the source on it. 2002-07-10 Jeffrey Stedfast * camel-filter-driver.c (get_message_cb): Make sure message is non-NULL before setting the source on it. svn path=/trunk/; revision=17415 --- camel/ChangeLog | 3 +++ camel/camel-filter-driver.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index b0748803bc..8c8a069355 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2002-07-10 Jeffrey Stedfast + * camel-filter-driver.c (get_message_cb): Make sure message is + non-NULL before setting the source on it. + * camel-gpg-context.c: Renamed stdin to stdin_fd, stdout to stdout_fd, and stderr to stderr_fd in struct _GpgCtx since Solaris' stdin/stdout/etderr variables seem to be macros and are diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c index e523bf4726..dea33852de 100644 --- a/camel/camel-filter-driver.c +++ b/camel/camel-filter-driver.c @@ -1084,7 +1084,7 @@ get_message_cb (void *data, CamelException *ex) message = camel_folder_get_message (p->source, uid, ex); } - if (source_url && camel_mime_message_get_source (message) == NULL) + if (source_url && message && camel_mime_message_get_source (message) == NULL) camel_mime_message_set_source (message, source_url); return message; -- cgit