[evolution-data-server/gnome-3-2] Bug 660246: EBookBackendSqliteDB: Bad loop iteration.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-2] Bug 660246: EBookBackendSqliteDB: Bad loop iteration.
- Date: Wed, 28 Sep 2011 14:09:20 +0000 (UTC)
commit e7c9bd036c7c430f1424a8c5b076e8b87723f36f
Author: Christophe Dumez <christophe dumez intel com>
Date: Wed Sep 28 10:05:09 2011 -0400
Bug 660246: EBookBackendSqliteDB: Bad loop iteration.
The code was not properly iterating over the UID list and as a
consequence, calling e_book_backend_sqlitedb_remove_constacts() with
more than one UID would only remove the first UID in the list.
(cherry picked from commit ca7ca9eb5c3208ddb368cf1b5f57a7c2e2ad7983)
.../libedata-book/e-book-backend-sqlitedb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb.c b/addressbook/libedata-book/e-book-backend-sqlitedb.c
index 206ed87..95ba3f4 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -748,7 +748,7 @@ e_book_backend_sqlitedb_remove_contacts (EBookBackendSqliteDB *ebsdb,
sqlite3_free (tmp);
for (l = uids; l != NULL; l = g_slist_next (l)) {
- gchar *uid = (gchar *) uids->data;
+ gchar *uid = (gchar *) l->data;
tmp = sqlite3_mprintf ("%Q", uid);
g_string_append_printf (str, " %s ,", tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]