[evolution-data-server] e-book-backend-file: Fix busy loop when modifying multiple contacts at once



commit 1e6fa2439857757a1189cb497efc56d23856dc21
Author: Milan Crha <mcrha redhat com>
Date:   Fri Mar 5 14:29:39 2021 +0100

    e-book-backend-file: Fix busy loop when modifying multiple contacts at once
    
    The modified contacts list never got beyond the second contact
    in the list, because always iterating from the beginning, instead
    of from the current position in the list.

 src/addressbook/backends/file/e-book-backend-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/addressbook/backends/file/e-book-backend-file.c 
b/src/addressbook/backends/file/e-book-backend-file.c
index 088de7249..887c56b05 100644
--- a/src/addressbook/backends/file/e-book-backend-file.c
+++ b/src/addressbook/backends/file/e-book-backend-file.c
@@ -1417,7 +1417,7 @@ book_backend_file_modify_contacts_sync (EBookBackendSync *backend,
                        cursors_contact_removed (bf, E_CONTACT (link->data));
                }
 
-               for (link = *out_contacts; link; link = g_slist_next (*out_contacts)) {
+               for (link = *out_contacts; link; link = g_slist_next (link)) {
                        cursors_contact_added (bf, E_CONTACT (link->data));
                }
        }


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