empathy r941 - trunk/libempathy-gtk



Author: xclaesse
Date: Mon Apr 14 16:26:45 2008
New Revision: 941
URL: http://svn.gnome.org/viewvc/empathy?rev=941&view=rev

Log:
Fix bug #526145.


Modified:
   trunk/libempathy-gtk/empathy-chat.c

Modified: trunk/libempathy-gtk/empathy-chat.c
==============================================================================
--- trunk/libempathy-gtk/empathy-chat.c	(original)
+++ trunk/libempathy-gtk/empathy-chat.c	Mon Apr 14 16:26:45 2008
@@ -1211,6 +1211,13 @@
 	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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]