aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-list-store.c5
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);