aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-08-08 04:07:46 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-08-08 04:07:46 +0800
commitec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6 (patch)
tree706f3ac8b0f5c094db3a8dad4fd545efdd871dcc /camel
parent51012e60d827b73a7bfd42b921760b0835dc7b66 (diff)
downloadgsoc2013-evolution-ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6.tar.gz
gsoc2013-evolution-ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6.tar.zst
gsoc2013-evolution-ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6.zip
Only add the stream to the gdatalist if it is non-NULL.
2002-08-07 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (parse_fetch_response): Only add the stream to the gdatalist if it is non-NULL. svn path=/trunk/; revision=17735
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/imap/camel-imap-folder.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index c543d51eef..12b2382d4f 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-07 Jeffrey Stedfast <fejj@ximian.com>
+
+ * providers/imap/camel-imap-folder.c (parse_fetch_response): Only
+ add the stream to the gdatalist if it is non-NULL.
+
2002-08-06 Jeffrey Stedfast <fejj@ximian.com>
* providers/sendmail/camel-sendmail-transport.c
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 9a060a4736..fc08efc5dc 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -2538,8 +2538,9 @@ parse_fetch_response (CamelImapFolder *imap_folder, char *response)
CAMEL_IMAP_FOLDER_UNLOCK (imap_folder, cache_lock);
}
- g_datalist_set_data_full (&data, "BODY_PART_STREAM", stream,
- (GDestroyNotify) camel_object_unref);
+ if (stream)
+ g_datalist_set_data_full (&data, "BODY_PART_STREAM", stream,
+ (GDestroyNotify) camel_object_unref);
}
return data;