Mercurial > pidgin
changeset 32404:55da4c7f06bf
Use g_list_prepend, since we're going to sort this list afterwards.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 22 Dec 2011 06:14:38 +0000 |
parents | 35e2df7e41e7 |
children | e4af50513560 |
files | libpurple/protocols/jabber/caps.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c Thu Dec 22 05:47:55 2011 +0000 +++ b/libpurple/protocols/jabber/caps.c Thu Dec 22 06:14:38 2011 +0000 @@ -794,11 +794,11 @@ for (value = xmlnode_get_child(field, "value"); value; value = xmlnode_get_next_twin(value)) { gchar *val = xmlnode_get_data(value); - xdatafield->values = g_list_append(xdatafield->values, val); + xdatafield->values = g_list_prepend(xdatafield->values, val); } xdatafield->values = g_list_sort(xdatafield->values, (GCompareFunc)strcmp); - fields = g_list_append(fields, xdatafield); + fields = g_list_prepend(fields, xdatafield); } fields = g_list_sort(fields, jabber_caps_xdata_field_compare);