Mercurial > pidgin
comparison libpurple/protocols/jabber/presence.c @ 31527:c832d481d021
jabber: Tighter scoping
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Tue, 03 May 2011 05:03:41 +0000 |
parents | b2f6fec7b98e |
children | 2ef7fb1f1154 |
comparison
equal
deleted
inserted
replaced
31526:b2f6fec7b98e | 31527:c832d481d021 |
---|---|
1208 | 1208 |
1209 static void | 1209 static void |
1210 parse_vcard_avatar(JabberStream *js, JabberPresence *presence, xmlnode *x) | 1210 parse_vcard_avatar(JabberStream *js, JabberPresence *presence, xmlnode *x) |
1211 { | 1211 { |
1212 xmlnode *photo = xmlnode_get_child(x, "photo"); | 1212 xmlnode *photo = xmlnode_get_child(x, "photo"); |
1213 char *hash_tmp; | |
1214 | 1213 |
1215 if (photo) { | 1214 if (photo) { |
1215 char *hash_tmp = xmlnode_get_data(photo); | |
1216 hash_tmp = xmlnode_get_data(photo); | |
1216 g_free(presence->vcard_avatar_hash); | 1217 g_free(presence->vcard_avatar_hash); |
1217 hash_tmp = xmlnode_get_data(photo); | 1218 presence->vcard_avatar_hash = |
1218 presence->vcard_avatar_hash = | |
1219 hash_tmp ? hash_tmp : g_strdup(""); | 1219 hash_tmp ? hash_tmp : g_strdup(""); |
1220 } | 1220 } |
1221 } | 1221 } |
1222 | 1222 |
1223 static void | 1223 static void |