Mercurial > pidgin.yaz
changeset 19726:64e0c7fa92c9
Prevent an assertion.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 11 Sep 2007 00:21:28 +0000 |
parents | 2643bd295495 |
children | bc0157120924 |
files | libpurple/protocols/jabber/caps.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c Tue Sep 11 00:15:28 2007 +0000 +++ b/libpurple/protocols/jabber/caps.c Tue Sep 11 00:21:28 2007 +0000 @@ -191,17 +191,18 @@ xmlnode *root = user_data; xmlnode *ext = xmlnode_new_child(root,"ext"); GList *iter; - + xmlnode_set_attrib(ext,"identifier",extname); - + for(iter = props->identities; iter; iter = g_list_next(iter)) { JabberCapsIdentity *id = iter->data; xmlnode *identity = xmlnode_new_child(ext, "identity"); xmlnode_set_attrib(identity, "category", id->category); xmlnode_set_attrib(identity, "type", id->type); - xmlnode_set_attrib(identity, "name", id->name); + if (id->name) + xmlnode_set_attrib(identity, "name", id->name); } - + for(iter = props->features; iter; iter = g_list_next(iter)) { const char *feat = iter->data; xmlnode *feature = xmlnode_new_child(ext, "feature");