diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-07-24 19:20:02 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-07-29 17:21:42 +0800 |
commit | e6b82c8297942483750028db51846180e225e35d (patch) | |
tree | 7ad0e44d592870142c501b8da4a305ee2c9f75d3 | |
parent | e5574c03936d59e2fc0077fcad318ad008c09d92 (diff) | |
download | gsoc2013-empathy-e6b82c8297942483750028db51846180e225e35d.tar gsoc2013-empathy-e6b82c8297942483750028db51846180e225e35d.tar.gz gsoc2013-empathy-e6b82c8297942483750028db51846180e225e35d.tar.bz2 gsoc2013-empathy-e6b82c8297942483750028db51846180e225e35d.tar.lz gsoc2013-empathy-e6b82c8297942483750028db51846180e225e35d.tar.xz gsoc2013-empathy-e6b82c8297942483750028db51846180e225e35d.tar.zst gsoc2013-empathy-e6b82c8297942483750028db51846180e225e35d.zip |
Init flags to 0 to make sure it is never undefined
-rw-r--r-- | libempathy-gtk/empathy-contact-list-store.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c index a4c1d7ab9..ea386e14a 100644 --- a/libempathy-gtk/empathy-contact-list-store.c +++ b/libempathy-gtk/empathy-contact-list-store.c @@ -858,7 +858,7 @@ contact_list_store_add_contact (EmpathyContactListStore *store, GtkTreeIter iter; GList *groups = NULL, *l; TpConnection *connection; - EmpathyContactListFlags flags; + EmpathyContactListFlags flags = 0; priv = GET_PRIV (store); @@ -875,10 +875,7 @@ contact_list_store_add_contact (EmpathyContactListStore *store, if (EMPATHY_IS_CONTACT_MANAGER (priv->list)) { flags = empathy_contact_manager_get_flags_for_connection ( EMPATHY_CONTACT_MANAGER (priv->list), connection); - } else { - flags = 0; } - /* If no groups just add it at the top level. */ if (!groups) { gtk_tree_store_append (GTK_TREE_STORE (store), &iter, NULL); |