[evolution-mapi/gnome-2-28] Bug #606338 - Do not dereference NULL pointer in mapi_append_message
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi/gnome-2-28] Bug #606338 - Do not dereference NULL pointer in mapi_append_message
- Date: Thu, 7 Jan 2010 18:36:37 +0000 (UTC)
commit 8011d6211a6b29156c1c73617902aa1f1a3614b8
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 7 19:36:24 2010 +0100
Bug #606338 - Do not dereference NULL pointer in mapi_append_message
src/camel/camel-mapi-folder.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index ddc7725..f02a8ba 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -2009,7 +2009,8 @@ mapi_append_message (CamelFolder *folder, CamelMimeMessage *message,
item->recipients, item->attachments,
item->generic_streams, 0);
- *appended_uid = exchange_mapi_util_mapi_ids_to_uid(fid, mid);
+ if (appended_uid)
+ *appended_uid = exchange_mapi_util_mapi_ids_to_uid(fid, mid);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]