projects
/
platform
/
upstream
/
evolution-data-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
969ea44
)
Bug #668549 - Crash in objects_added_cb() in e-book-client-view.c
author
Milan Crha
<mcrha@redhat.com>
Mon, 23 Apr 2012 11:44:11 +0000
(13:44 +0200)
committer
Milan Crha
<mcrha@redhat.com>
Mon, 23 Apr 2012 11:44:11 +0000
(13:44 +0200)
addressbook/libebook/e-book-client-view.c
patch
|
blob
|
history
diff --git
a/addressbook/libebook/e-book-client-view.c
b/addressbook/libebook/e-book-client-view.c
index
dc271f1
..
0c53524
100644
(file)
--- 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);