Clarify code to remove unnecessary check (CID 309).

Wed, 10 Oct 2007 01:14:34 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Wed, 10 Oct 2007 01:14:34 +0000
changeset 20946
21dc0dafd5e7
parent 20945
f20d9dde67f8
child 20947
eb3236949f34

Clarify code to remove unnecessary check (CID 309).

libpurple/protocols/yahoo/yahoo_aliases.c file | annotate | diff | comparison | revisions
--- 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);

mercurial