From 5dd9b4a9936856c5d2a8edb096f365db3d2817b9 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Thu, 31 Mar 2011 03:59:44 +0000 Subject: [PATCH] (trunk libT) fix potential UMR detected by clang static analyzer: maxPeers could be uninitialized in some pathological logic branches --- libtransmission/peer-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index eb55315c4..10e1a5f7a 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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;