From e6b82c8297942483750028db51846180e225e35d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 24 Jul 2009 13:20:02 +0200 Subject: Init flags to 0 to make sure it is never undefined --- libempathy-gtk/empathy-contact-list-store.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libempathy-gtk') 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); -- cgit v1.2.3