[evolution-ews] Bug #723520 - Crash while syncing updated items



commit 34e0db42448ca2c9b2abf0dbe38317711320fc2d
Author: Milan Crha <mcrha redhat com>
Date:   Fri Feb 7 10:52:50 2014 +0100

    Bug #723520 - Crash while syncing updated items
    
    The CamelEwsMessageInfo can contain NULL change_key member, probably
    caused by other crash.

 src/camel/camel-ews-folder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index c7735e6..db937dc 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -1271,7 +1271,7 @@ sync_updated_items (CamelEwsFolder *ews_folder,
                }
 
                /* Check if the item has really changed */
-               if (!strcmp (((CamelEwsMessageInfo *) mi)->change_key, id->change_key)) {
+               if (!g_strcmp0 (((CamelEwsMessageInfo *) mi)->change_key, id->change_key)) {
                        camel_message_info_unref (mi);
                        g_object_unref (item);
                        continue;


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