]> granicus.if.org Git - transmission/commitdiff
(trunk libT) fix an r7707 bug in tr_sessionGetActiveTorrentCount()
authorCharles Kerr <charles@transmissionbt.com>
Tue, 13 Jan 2009 21:06:07 +0000 (21:06 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 13 Jan 2009 21:06:07 +0000 (21:06 +0000)
libtransmission/session.c

index d18178882bcfcb083e9b3e60fdf8c8387198561a..1f6768287eb14bc4cf3a87dc476965b6806c3852 100644 (file)
@@ -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 )