Changeset 8509


Ignore:
Timestamp:
May 24, 2009, 2:37:12 PM (12 years ago)
Author:
livings124
Message:

safety check for when displaying trackers in the inspector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r8479 r8509  
    772772{
    773773    const NSInteger count = fInfo->trackerCount;
    774     const NSInteger capacity = separators ? count + fInfo->trackers[count-1].tier + 1 : count;
     774    const NSInteger capacity = (separators && count > 0) ? count + fInfo->trackers[count-1].tier + 1 : count;
    775775    NSMutableArray * allTrackers = [NSMutableArray arrayWithCapacity: capacity];
    776776   
Note: See TracChangeset for help on using the changeset viewer.