im.pidgin.pidgin: 1d074784ebb62d1f8c06d80074ca8cab61c2d346

sadrul at pidgin.im sadrul at pidgin.im
Wed Nov 21 16:50:48 EST 2007


-----------------------------------------------------------------
Revision: 1d074784ebb62d1f8c06d80074ca8cab61c2d346
Ancestor: 91ae77ce12a4ab3798e303eea54d3bef749d5ca5
Author: sadrul at pidgin.im
Date: 2007-11-21T21:46:48
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/yahoo/yahoo_packet.c

ChangeLog: 

disapproval of revision '91ae77ce12a4ab3798e303eea54d3bef749d5ca5'
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_packet.c	c244807303180494e5d6ccb3531583f930347979
+++ libpurple/protocols/yahoo/yahoo_packet.c	33e9440410856401ba5cd9ae3630ef1710b71333
@@ -219,15 +219,16 @@ void yahoo_packet_write(struct yahoo_pac
 
 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data)
 {
+	GSList *l = pkt->hash;
 	int pos = 0;
 
 	/* This is only called from one place, and the list is
 	 * always backwards */
 
-	pkt->hash = g_slist_reverse(pkt->hash);
+	l = g_slist_reverse(l);
 
-	while (pkt->hash) {
-		struct yahoo_pair *pair = pkt->hash->data;
+	while (l) {
+		struct yahoo_pair *pair = l->data;
 		gchar buf[100];
 
 		g_snprintf(buf, sizeof(buf), "%d", pair->key);
@@ -241,7 +242,7 @@ void yahoo_packet_write(struct yahoo_pac
 		data[pos++] = 0xc0;
 		data[pos++] = 0x80;
 
-		pkt->hash = pkt->hash->next;
+		l = l->next;
 	}
 }
 


More information about the Commits mailing list