pidgin: 077ded4f: Use g_list_prepend, since we're going to...

qulogic at pidgin.im qulogic at pidgin.im
Thu Dec 22 04:40:57 EST 2011


----------------------------------------------------------------------
Revision: 077ded4f640982ce1cb77ac791bfc02f8ea7ea67
Parent:   f17fc6b06484b1ce18e50f4c2576cd5961174381
Author:   qulogic at pidgin.im
Date:     12/22/11 01:14:38
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/077ded4f640982ce1cb77ac791bfc02f8ea7ea67

Changelog: 

Use g_list_prepend, since we're going to sort this list afterwards.

Changes against parent f17fc6b06484b1ce18e50f4c2576cd5961174381

  patched  libpurple/protocols/jabber/caps.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/caps.c	441ddbc88ecf5229d8f75e1ea088e1ecc655a9bc
+++ libpurple/protocols/jabber/caps.c	ec1ad57734fecc5bc95cc152bb375a412459b1a5
@@ -794,11 +794,11 @@ static GList* jabber_caps_xdata_get_fiel
 
 		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);


More information about the Commits mailing list