Mercurial > pidgin
diff libpurple/protocols/yahoo/yahoo_friend.c @ 27590:a08e84032814
merge of '2348ff22f0ff3453774b8b25b36238465580c609'
and 'e76f11543c2a4aa05bdf584f087cbe3439029661'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 12 Jul 2009 05:43:38 +0000 |
parents | 1a971a264c3e |
children | fa827f6f990f |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_friend.c Sun Jul 12 05:42:40 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo_friend.c Sun Jul 12 05:43:38 2009 +0000 @@ -172,16 +172,16 @@ l = l->next; } + if (value != 1 && value != 2) { + purple_debug_error("yahoo", "Received unknown value for presence key: %d\n", value); + return; + } + if(msn) who = g_strconcat("msn/", temp, NULL); else who = g_strdup(temp); - if (value != 1 && value != 2) { - purple_debug_error("yahoo", "Received unknown value for presence key: %d\n", value); - return; - } - g_return_if_fail(who != NULL); f = yahoo_friend_find(gc, who);