Small iterator change in libtransmission by oleo.
This commit is contained in:
parent
cbaa4aec74
commit
af77d3d170
|
@ -386,10 +386,11 @@ int tr_torrentCount( tr_handle_t * h )
|
|||
|
||||
void tr_torrentIterate( tr_handle_t * h, tr_callback_t func, void * d )
|
||||
{
|
||||
tr_torrent_t * tor;
|
||||
tr_torrent_t * tor, * next;
|
||||
|
||||
for( tor = h->torrentList; tor; tor = tor->next )
|
||||
for( tor = h->torrentList; tor; tor = next )
|
||||
{
|
||||
next = tor->next;
|
||||
func( tor, d );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue