]> git.0d.be Git - empathy.git/commitdiff
Init flags to 0 to make sure it is never undefined
authorXavier Claessens <xclaesse@gmail.com>
Fri, 24 Jul 2009 11:20:02 +0000 (13:20 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 29 Jul 2009 09:21:42 +0000 (11:21 +0200)
libempathy-gtk/empathy-contact-list-store.c

index a4c1d7ab977a35eba2d16571504a5c1b57abed5d..ea386e14aee5be8359172d563bca68bd0e8a6c0b 100644 (file)
@@ -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);