[evolution-data-server] Bug #668549 - Crash in objects_added_cb() in e-book-client-view.c
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #668549 - Crash in objects_added_cb() in e-book-client-view.c
- Date: Mon, 23 Apr 2012 11:44:44 +0000 (UTC)
commit 516e6d17bfc0b20a255005f0dba4af6923a220ac
Author: Milan Crha <mcrha redhat com>
Date: Mon Apr 23 13:44:11 2012 +0200
Bug #668549 - Crash in objects_added_cb() in e-book-client-view.c
addressbook/libebook/e-book-client-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/libebook/e-book-client-view.c b/addressbook/libebook/e-book-client-view.c
index dc271f1..0c53524 100644
--- a/addressbook/libebook/e-book-client-view.c
+++ b/addressbook/libebook/e-book-client-view.c
@@ -69,7 +69,7 @@ objects_added_cb (EGdbusBookView *object,
return;
/* array contains both UID and vcard */
- for (p = vcards; *p; p += 2) {
+ for (p = vcards; p[0] && p[1]; p += 2) {
contacts = g_slist_prepend (contacts, e_contact_new_from_vcard_with_uid (p[0], p[1]));
}
@@ -92,7 +92,7 @@ objects_modified_cb (EGdbusBookView *object,
return;
/* array contains both UID and vcard */
- for (p = vcards; *p; p += 2) {
+ for (p = vcards; p[0] && p[1]; p += 2) {
contacts = g_slist_prepend (contacts, e_contact_new_from_vcard_with_uid (p[0], p[1]));
}
contacts = g_slist_reverse (contacts);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]