Changeset 11708


Ignore:
Timestamp:
Jan 19, 2011, 12:20:26 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) #3912 "tr_torrentGetMetadataPercent() may return NaN" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent-magnet.c

    r11599 r11708  
    359359    else {
    360360        const struct tr_incomplete_metadata * m = tor->incompleteMetadata;
    361         if( m == NULL )
     361        if( !m || !m->pieceCount )
    362362            ret = 0.0;
    363363        else
Note: See TracChangeset for help on using the changeset viewer.