# HG changeset patch # User Nathan Walp # Date 1064793254 0 # Node ID 9d038cc7e825f24358addc4d22bae47c8f4471a3 # Parent aeea0debeafe99c4c78f5b745a594d4c0e2c8a6c [gaim-migrate @ 7556] forgot this committer: Tailor Script diff -r aeea0debeafe -r 9d038cc7e825 src/util.c --- 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;