diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-06-20 03:05:43 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-06-20 03:05:43 +0800 |
commit | 813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2 (patch) | |
tree | 611cf28ac728e8e4f543970c1370696491b61896 /libempathy-gtk | |
parent | f6e4c9ebc9374f787d623fbb787a2afd5407f5fe (diff) | |
download | gsoc2013-empathy-813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2.tar gsoc2013-empathy-813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2.tar.gz gsoc2013-empathy-813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2.tar.bz2 gsoc2013-empathy-813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2.tar.lz gsoc2013-empathy-813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2.tar.xz gsoc2013-empathy-813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2.tar.zst gsoc2013-empathy-813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2.zip |
Throw a warning if the contact sort function didn't get two contacts
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-list-store.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |