libpurple/protocols/yahoo/yahoo_packet.c

changeset 21693
d726f725f088
parent 21690
844340836efe
child 22622
1ecb840b5101
equal deleted inserted replaced
21692:eb7c919b05f2 21693:d726f725f088
217 pkt->hash = g_slist_reverse(pkt->hash); 217 pkt->hash = g_slist_reverse(pkt->hash);
218 } 218 }
219 219
220 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data) 220 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data)
221 { 221 {
222 GSList *l = pkt->hash; 222 GSList *l;
223 int pos = 0; 223 int pos = 0;
224 224
225 /* This is only called from one place, and the list is 225 /* This is only called from one place, and the list is
226 * always backwards */ 226 * always backwards */
227 227
228 l = g_slist_reverse(l); 228 l = pkt->hash = g_slist_reverse(pkt->hash);
229 229
230 while (l) { 230 while (l) {
231 struct yahoo_pair *pair = l->data; 231 struct yahoo_pair *pair = l->data;
232 gchar buf[100]; 232 gchar buf[100];
233 233

mercurial