[empathy] Init flags to 0 to make sure it is never undefined



commit e6b82c8297942483750028db51846180e225e35d
Author: Xavier Claessens <xclaesse gmail com>
Date:   Fri Jul 24 13:20:02 2009 +0200

    Init flags to 0 to make sure it is never undefined

 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 a4c1d7a..ea386e1 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]