]> err.no Git - eweouz/commitdiff
NULL-terminate g_object_set call
authorTollef Fog Heen <tfheen@err.no>
Wed, 29 Oct 2008 08:10:42 +0000 (09:10 +0100)
committerTollef Fog Heen <tfheen@err.no>
Wed, 29 Oct 2008 08:10:42 +0000 (09:10 +0100)
Fixes segfault

src/eweouz-write-addressbook.c

index 3f57c94bf32e2443eaa750c5d1e934e23b59951a..aecc3943b12334df2deea034f5b4683479721a96 100644 (file)
@@ -151,7 +151,7 @@ int main(int argc, char **argv)
                                                        el = g_list_prepend(el, *head);
                                                        head++;
                                                }
-                                               g_object_set(E_CONTACT(c->data), "email", el);
+                                               g_object_set(E_CONTACT(c->data), "email", el, NULL);
                                                e_book_commit_contact(book, E_CONTACT(c->data), &error);
                                        }
                                }