]> granicus.if.org Git - transmission/commitdiff
(trunk, libT) #5199 'tr_sessionGetNextQueuedTorrent() can be faster' -- fix r13709...
authorJordan Lee <jordan@transmissionbt.com>
Fri, 28 Dec 2012 21:51:10 +0000 (21:51 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 28 Dec 2012 21:51:10 +0000 (21:51 +0000)
libtransmission/session.c

index 8087608ca69b30e0b37d630c0fccb1d472bedab4..b6709177f4f490515640f26090eaa7cd2ff2c8e4 100644 (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)))
     {