From 3496bec16b5ab493136bc7ee30242b4d1ce6453a Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 14 Apr 2008 15:26:45 +0000 Subject: Fix bug #526145. svn path=/trunk/; revision=941 --- libempathy-gtk/empathy-chat.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libempathy-gtk/empathy-chat.c') 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); -- cgit v1.2.3