aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/camel-filter-driver.c2
2 files changed, 4 insertions, 1 deletions
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 <fejj@ximian.com>
+ * 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;