aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-06-20 03:05:43 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-06-20 03:05:43 +0800
commit813e42dcf617f97e0ed0cdc7a77ad428d5b87ef2 (patch)
tree611cf28ac728e8e4f543970c1370696491b61896 /libempathy-gtk
parentf6e4c9ebc9374f787d623fbb787a2afd5407f5fe (diff)
downloadgsoc2013-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.c2
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));