[evolution-ews/gnome-3-8] Bug #704940 - Crash in sync_xxx_response_cb()



commit 044a26aaa6cd5865f66c2337d6a40eaab87bfdd2
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Tue Jul 30 14:57:19 2013 +0200

    Bug #704940 - Crash in sync_xxx_response_cb()
    
    This patch is a workaround that avoid the crash without mess with the
    functions using the returned values. A proper fix can be done as soon
    we figure out the real cause of the problem.

 src/server/e-ews-connection.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index 1404f18..4495144 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -603,15 +603,15 @@ sync_xxx_response_cb (ESoapParameter *subparam,
        ESoapParameter *node;
        gchar *new_sync_state = NULL, *value, *last;
        GSList *items_created = NULL, *items_updated = NULL, *items_deleted = NULL;
-       gboolean includes_last_item = FALSE;
+       gboolean includes_last_item = TRUE;
 
        node = e_soap_parameter_get_first_child_by_name (subparam, "SyncState");
        new_sync_state = e_soap_parameter_get_string_value (node);
 
        node = e_soap_parameter_get_first_child_by_name (subparam, last_tag);
        last = e_soap_parameter_get_string_value (node);
-       if (!strcmp (last, "true"))
-               includes_last_item = TRUE;
+       if (g_strcmp0 (last, "false") == 0)
+               includes_last_item = FALSE;
        g_free (last);
 
        node = e_soap_parameter_get_first_child_by_name (subparam, "Changes");


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