From 2c1afe07a422308c1f238b6804e7a4fc1401562a Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 13 Jan 2009 21:06:07 +0000 Subject: [PATCH] (trunk libT) fix an r7707 bug in tr_sessionGetActiveTorrentCount() --- libtransmission/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/session.c b/libtransmission/session.c index d18178882..1f6768287 100644 --- a/libtransmission/session.c +++ b/libtransmission/session.c @@ -1403,7 +1403,7 @@ int tr_sessionGetActiveTorrentCount( tr_session * session ) { int ret; - tr_torrent * tor; + tr_torrent * tor = NULL; while(( tor = tr_torrentNext( session, tor ))) if( tr_torrentGetActivity( tor ) != TR_STATUS_STOPPED ) -- 2.40.0