]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-contact-list.c
Fix indentation Fix not returning the contact in tp_contact_list_find()
[empathy.git] / libempathy / empathy-tp-contact-list.c
index 43c317e0035d6f8aeebe999b1be76e7632458892..60a7fd5353a1adcebe10b40ad95c025859ce7f80 100644 (file)
@@ -447,17 +447,14 @@ tp_contact_list_find (EmpathyContactList *list,
                      const gchar        *id)
 {
        EmpathyTpContactListPriv *priv;
-       GossipContact            *contact;
 
        g_return_val_if_fail (EMPATHY_IS_TP_CONTACT_LIST (list), NULL);
 
        priv = GET_PRIV (list);
 
-       contact = g_hash_table_find (priv->contacts,
-                                    (GHRFunc) tp_contact_list_find_foreach,
-                                    (gchar*) id);
-
-       return NULL;
+       return g_hash_table_find (priv->contacts,
+                                 (GHRFunc) tp_contact_list_find_foreach,
+                                 (gchar*) id);
 }
 
 static void