From 813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 19 Jun 2010 20:05:43 +0100 Subject: Throw a warning if the contact sort function didn't get two contacts --- libempathy-gtk/empathy-contact-list-store.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c index 57768997d..8916761d4 100644 --- a/libempathy-gtk/empathy-contact-list-store.c +++ b/libempathy-gtk/empathy-contact-list-store.c @@ -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)); -- cgit v1.2.3