# HG changeset patch # User Elliott Sales de Andrade # Date 1234830454 0 # Node ID b096f7fb6899ce9b5e2d00b020f60f683683064c # Parent 463a2caa35e6b9dfd330c69c0a128e12a4826d79 Don't set an attribute prefix on the node, and remove an unnecessary call to g_strdup. We'll have to add back (real) attribute prefix setting in 2.6.0 when we can add new API. References #8318. diff -r 463a2caa35e6 -r b096f7fb6899 libpurple/protocols/jabber/parser.c --- a/libpurple/protocols/jabber/parser.c Mon Feb 16 05:12:26 2009 +0000 +++ b/libpurple/protocols/jabber/parser.c Tue Feb 17 00:27:34 2009 +0000 @@ -86,15 +86,10 @@ } } for(i=0; i < nb_attributes * 5; i+=5) { - const char *prefix = (const char *)attributes[i + 1]; + const char *attrib_ns = (const char *)attributes[i+2]; char *txt; int attrib_len = attributes[i+4] - attributes[i+3]; char *attrib = g_malloc(attrib_len + 1); - char *attrib_ns = NULL; - - if (attributes[i+2]) { - attrib_ns = g_strdup((char*)attributes[i+2]); - } memcpy(attrib, attributes[i+3], attrib_len); attrib[attrib_len] = '\0'; @@ -103,11 +98,7 @@ attrib = purple_unescape_html(txt); g_free(txt); xmlnode_set_attrib_with_namespace(node, (const char*) attributes[i], attrib_ns, attrib); - if (prefix && *prefix) { - node->prefix = g_strdup(prefix); - } g_free(attrib); - g_free(attrib_ns); } js->current = node;