Changeset 3932


Ignore:
Timestamp:
Nov 23, 2007, 2:14:21 AM (15 years ago)
Author:
charles
Message:

fix libT crash reported in the forums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r3918 r3932  
    883883tr_torrentPeers( const tr_torrent * tor, int * peerCount )
    884884{
    885     return tr_peerMgrPeerStats( tor->handle->peerMgr,
    886                                 tor->info.hash, peerCount );
     885    tr_peer_stat * ret = NULL;
     886
     887    if( tor != NULL )
     888        ret = tr_peerMgrPeerStats( tor->handle->peerMgr,
     889                                   tor->info.hash, peerCount );
     890
     891    return ret;
    887892}
    888893
Note: See TracChangeset for help on using the changeset viewer.