Mercurial > pidgin.yaz
changeset 20865:e3d22d8ba9f0
Clarify code to remove unnecessary check (CID 309).
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 10 Oct 2007 01:14:34 +0000 |
parents | 8f0dceea2ca4 |
children | af40f2766881 |
files | libpurple/protocols/yahoo/yahoo_aliases.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_aliases.c Wed Oct 10 01:09:55 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo_aliases.c Wed Oct 10 01:14:34 2007 +0000 @@ -117,7 +117,7 @@ if (alias != NULL) { serv_got_alias(cb->gc, yid, alias); purple_debug_info("yahoo","Fetched alias '%s' (%s)\n",alias,id); - } else if (g_strcasecmp((alias!=NULL?alias:""),(b->alias!=NULL?b->alias:"")) != 0) { + } else if (b->alias != alias && strcmp(b->alias, "") != 0) { /* Or if we have an alias that Yahoo doesn't, send it up */ yahoo_update_alias(cb->gc, yid, b->alias); purple_debug_info("yahoo","Sent alias '%s'\n", b->alias);