pidgin: d95c5df9: Ignore display name updates that are NUL...

qulogic at pidgin.im qulogic at pidgin.im
Tue Mar 1 01:40:59 EST 2011


----------------------------------------------------------------------
Revision: d95c5df9aaf651a9252d56c71f1d27de37ee5527
Parent:   3f550d201ad4d5437fe3d647a70d657f64e6344d
Author:   qulogic at pidgin.im
Date:     03/01/11 01:16:04
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d95c5df9aaf651a9252d56c71f1d27de37ee5527

Changelog: 

Ignore display name updates that are NULL. In all cases, the new
display name is either non-NULL, or the MsnUser is new and the saved
display name is already NULL anyway. This change leads to the next
revision...

Changes against parent 3f550d201ad4d5437fe3d647a70d657f64e6344d

  patched  libpurple/protocols/msn/user.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/user.c	70a4e4faa17b021b8009ea9a2d838693dd1ca4b7
+++ libpurple/protocols/msn/user.c	8c7e757f6b615aee9dce7caf348ea1ce6770fafe
@@ -223,7 +223,10 @@ msn_user_set_friendly_name(MsnUser *user
 {
 	g_return_val_if_fail(user != NULL, FALSE);
 
-	if (user->friendly_name && name && (!strcmp(user->friendly_name, name) ||
+	if (!name)
+		return FALSE;
+
+	if (user->friendly_name && (!strcmp(user->friendly_name, name) ||
 				!strcmp(user->passport, name)))
 		return FALSE;
 


More information about the Commits mailing list