aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-14 23:26:45 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-14 23:26:45 +0800
commit3496bec16b5ab493136bc7ee30242b4d1ce6453a (patch)
tree6daee9d0146559670e24d3880762471fc89ba490
parent82dc265d727215af29471fcee699b9437adcc819 (diff)
downloadgsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar
gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.gz
gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.bz2
gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.lz
gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.xz
gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.tar.zst
gsoc2013-empathy-3496bec16b5ab493136bc7ee30242b4d1ce6453a.zip
Fix bug #526145.
svn path=/trunk/; revision=941
-rw-r--r--libempathy-gtk/empathy-chat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 34bd39831..cdddf2d6c 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1211,6 +1211,13 @@ chat_contacts_completion_func (const gchar *s1,
gchar *tmp, *nick1, *nick2;
gint ret;
+ if (s1 == s2) {
+ return 0;
+ }
+ if (!s1 || !s2) {
+ return s1 ? -1 : +1;
+ }
+
tmp = g_utf8_normalize (s1, -1, G_NORMALIZE_DEFAULT);
nick1 = g_utf8_casefold (tmp, -1);
g_free (tmp);