[evolution-mapi/gnome-2-32] Bug #640584 - Crash if mailbox size property is missing



commit c817c6d20c5580b7742801ac3c664b7102c0fc09
Author: Jelmer Vernooij <jelmer samba org>
Date:   Thu Jan 27 17:20:55 2011 +0100

    Bug #640584 - Crash if mailbox size property is missing

 src/libexchangemapi/exchange-mapi-connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index 7eaff37..5de3f0d 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -3263,7 +3263,7 @@ exchange_mapi_connection_get_folders_list (ExchangeMapiConnection *conn, GSList
 					   MAPI_PERSONAL_FOLDER, mailbox_id, 0, 0, 0 ,0);
 	folder->is_default = true;
 	folder->default_type = olFolderTopInformationStore; /*Is this correct ?*/
-	folder->size = *mailbox_size;
+	folder->size = mailbox_size ? *mailbox_size : 0;
 
 	*mapi_folders = g_slist_prepend (*mapi_folders, folder);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]