From ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 7 Aug 2002 20:07:46 +0000 Subject: Only add the stream to the gdatalist if it is non-NULL. 2002-08-07 Jeffrey Stedfast * 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 --- camel/ChangeLog | 5 +++++ camel/providers/imap/camel-imap-folder.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'camel') 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 + + * 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 * 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; -- cgit v1.2.3