From 14dca05e214128253e8314ce3b011cf941b1bede Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Fri, 28 Dec 2012 21:51:10 +0000 Subject: [PATCH] (trunk, libT) #5199 'tr_sessionGetNextQueuedTorrent() can be faster' -- fix r13709 oops --- libtransmission/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtransmission/session.c b/libtransmission/session.c index 8087608ca..b6709177f 100644 --- a/libtransmission/session.c +++ b/libtransmission/session.c @@ -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))) { -- 2.40.0