[evolution-mapi/gnome-2-26] ** BUGFIX: 584072 - Drafts folder crash.
- From: Bharath Acharya <abharath src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-mapi/gnome-2-26] ** BUGFIX: 584072 - Drafts folder crash.
- Date: Tue, 9 Jun 2009 04:12:14 -0400 (EDT)
commit 1051aaaff90aae2e01d4b0ae6c5a0643576cae59
Author: Bharath Acharya <abharath novell com>
Date: Tue Jun 9 13:41:28 2009 +0530
** BUGFIX: 584072 - Drafts folder crash.
Evolution crashed when I selected the Drafts folder
---
src/camel/camel-mapi-folder.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index f94bce9..321a69f 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -444,10 +444,13 @@ mapi_update_cache (CamelFolder *folder, GSList *list, CamelFolderChangeInfo **ch
item->header.from_email = item->header.from_email ?
item->header.from_email : item->header.from;
-
- from = camel_internet_address_format_address (item->header.from,
- item->header.from_email);
- mi->info.from = camel_pstring_strdup (from);
+
+ if (item->header.from_email) {
+ from = camel_internet_address_format_address (item->header.from,
+ item->header.from_email);
+ mi->info.from = camel_pstring_strdup (from);
+ } else
+ mi->info.from = NULL;
mi->info.to = camel_pstring_strdup (to);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]