(trunk, libT) #5199 'tr_sessionGetNextQueuedTorrent() can be faster' -- fix r13709 oops

This commit is contained in:
Jordan Lee 2012-12-28 21:51:10 +00:00
parent aa906ced75
commit 14dca05e21
1 changed files with 1 additions and 0 deletions

View File

@ -2753,6 +2753,7 @@ tr_sessionGetNextQueuedTorrents (tr_session * session,
/* build an array of the candidates */
candidates = tr_new (struct TorrentAndPosition, session->torrentCount);
i = 0;
tor = NULL;
while ((tor = tr_torrentNext (session, tor)))
{