pidgin: c0c17c8a: jabber: Tighter scoping

darkrain42 at pidgin.im darkrain42 at pidgin.im
Tue May 3 01:20:35 EDT 2011


----------------------------------------------------------------------
Revision: c0c17c8acb8a0c1a99cdfe686fac11c64474c5e6
Parent:   f02baf428501d0fb764628538fa150c7111e789f
Author:   darkrain42 at pidgin.im
Date:     05/03/11 01:03:41
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c0c17c8acb8a0c1a99cdfe686fac11c64474c5e6

Changelog: 

jabber: Tighter scoping

Changes against parent f02baf428501d0fb764628538fa150c7111e789f

  patched  libpurple/protocols/jabber/presence.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/presence.c	8a283ca07bac62d7e2f33fba244785f734deb677
+++ libpurple/protocols/jabber/presence.c	e43e5cb522aedfe548c1b28367bb439a9750ea7c
@@ -1210,12 +1210,12 @@ parse_vcard_avatar(JabberStream *js, Jab
 parse_vcard_avatar(JabberStream *js, JabberPresence *presence, xmlnode *x)
 {
 	xmlnode *photo = xmlnode_get_child(x, "photo");
-	char *hash_tmp;	
 
 	if (photo) {
+		char *hash_tmp = xmlnode_get_data(photo);
+		hash_tmp = xmlnode_get_data(photo);
 		g_free(presence->vcard_avatar_hash);
-		hash_tmp = xmlnode_get_data(photo);
-		presence->vcard_avatar_hash = 
+		presence->vcard_avatar_hash =
 			hash_tmp ? hash_tmp : g_strdup("");
 	}
 }


More information about the Commits mailing list