(trunk libT) fix potential UMR detected by clang static analyzer: maxPeers could be uninitialized in some pathological logic branches

This commit is contained in:
Jordan Lee 2011-03-31 03:59:44 +00:00
parent c8bec40e3f
commit 5dd9b4a993
1 changed files with 1 additions and 1 deletions

View File

@ -2814,7 +2814,7 @@ rechokeDownloads( Torrent * t )
const time_t now = tr_time( );
const int MIN_INTERESTING_PEERS = 5;
const int peerCount = tr_ptrArraySize( &t->peers );
int maxPeers;
int maxPeers = 0;
int badCount = 0;
int goodCount = 0;