]> git.0d.be Git - empathy.git/commitdiff
Throw a warning if the contact sort function didn't get two contacts
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sat, 19 Jun 2010 19:05:43 +0000 (20:05 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sat, 19 Jun 2010 19:05:43 +0000 (20:05 +0100)
libempathy-gtk/empathy-contact-list-store.c

index 57768997de1beaf855ca4bee90fa5d66bfc0c5c9..8916761d43fb16368d4e1672980202b3675fecff 100644 (file)
@@ -1573,6 +1573,8 @@ contact_list_store_contact_sort (EmpathyContact *contact_a,
        TpAccount *account_a, *account_b;
        gint ret_val;
 
+       g_return_val_if_fail (contact_a != NULL || contact_b != NULL, 0);
+
        /* alias */
        ret_val = g_utf8_collate (empathy_contact_get_name (contact_a),
                                  empathy_contact_get_name (contact_b));