[evolution-ews/evolution-ews-3-12] Fix modify_contacts for EBookSqlite



commit 7bad8db14884a923a9b1785c9126999b6cfa228f
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.
    
    (cherry picked from commit 8325bea618c21e23d3c1f3dcd05f2ef58f76e74b)

 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 c064ca2..f77895c 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]