mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
(trunk libT) #3932 "Assertion failed: (tab != NULL), function tr_torrentAvailability"
Looks like tab can be NULL from the Mac client when magnet links are involved and the Mac client doesn't know how many pieces are available, so that assertion's not appropriate.
This commit is contained in:
parent
2322b32591
commit
9220ad2300
1 changed files with 6 additions and 9 deletions
|
@ -1455,15 +1455,12 @@ tr_torrentTrackersFree( tr_tracker_stat * trackers, int trackerCount )
|
|||
void
|
||||
tr_torrentAvailability( const tr_torrent * tor, int8_t * tab, int size )
|
||||
{
|
||||
assert( tr_isTorrent( tor ) );
|
||||
assert( tab != NULL );
|
||||
assert( size > 0 );
|
||||
|
||||
tr_torrentLock( tor );
|
||||
|
||||
tr_peerMgrTorrentAvailability( tor, tab, size );
|
||||
|
||||
tr_torrentUnlock( tor );
|
||||
if( tr_isTorrent( tor ) && ( tab != NULL ) && ( size > 0 ) )
|
||||
{
|
||||
tr_torrentLock( tor );
|
||||
tr_peerMgrTorrentAvailability( tor, tab, size );
|
||||
tr_torrentUnlock( tor );
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue