[evolution-ews] Fix modify_contacts for EBookSqlite



commit 8325bea618c21e23d3c1f3dcd05f2ef58f76e74b
Author: David Woodhouse <David Woodhouse intel com>
Date:   Fri Sep 5 15:00:05 2014 +0100

    Fix modify_contacts for EBookSqlite
    
    Oops, old_contact needs to be initialised to NULL when it isn't the return
    value from the function. Broke this in the conversion to EBookSqlite.

 src/addressbook/e-book-backend-ews.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index a354ba0..b0506b4 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -1742,7 +1742,7 @@ e_book_backend_ews_modify_contacts (EBookBackend *backend,
                                     GCancellable *cancellable,
                                     const GSList *vcards)
 {
-       EContact *contact = NULL, *old_contact;
+       EContact *contact = NULL, *old_contact = NULL;
        EwsModifyContact *modify_contact;
        EBookBackendEws *ebews;
        EwsId *id;


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