changeset 7000:9d038cc7e825

[gaim-migrate @ 7556] forgot this committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 28 Sep 2003 23:54:14 +0000
parents aeea0debeafe
children 7b372ecdbd8d
files src/util.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Sun Sep 28 23:07:00 2003 +0000
+++ b/src/util.c	Sun Sep 28 23:54:14 2003 +0000
@@ -916,6 +916,13 @@
 	gchar *b_norm=NULL;
 	gint ret=-1;
 
+	if(!a && b)
+		return -1;
+	else if(!b && a)
+		return 1;
+	else if(!a && !b)
+		return 0;
+
 	if(!g_utf8_validate(a, -1, NULL) || !g_utf8_validate(b, -1, NULL)) {
 		gaim_debug(GAIM_DEBUG_ERROR, "gaim_utf8_strcasecmp", "One or both parameters are invalid UTF8\n");
 		return ret;