aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
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/providers
parent51012e60d827b73a7bfd42b921760b0835dc7b66 (diff)
downloadgsoc2013-evolution-ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6.tar
gsoc2013-evolution-ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6.tar.gz
gsoc2013-evolution-ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6.tar.bz2
gsoc2013-evolution-ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6.tar.lz
gsoc2013-evolution-ec7b3f3944c2c3589a9a4a6f6a6dc7714193b3c6.tar.xz
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/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c5
1 files changed, 3 insertions, 2 deletions
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;