Changeset 12272


Ignore:
Timestamp:
Mar 31, 2011, 3:59:44 AM (11 years ago)
Author:
jordan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r12263 r12272  
    28152815    const int MIN_INTERESTING_PEERS = 5;
    28162816    const int peerCount = tr_ptrArraySize( &t->peers );
    2817     int maxPeers;
     2817    int maxPeers         = 0;
    28182818
    28192819    int badCount         = 0;
Note: See TracChangeset for help on using the changeset viewer.