Changeset 7648


Ignore:
Timestamp:
Jan 9, 2009, 6:39:30 PM (12 years ago)
Author:
charles
Message:

(trunk libT) fix downloadDir error reported & tracked down by wereHamster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r7632 r7648  
    435435                 const tr_ctor   * ctor )
    436436{
    437     int        doStart;
    438     uint64_t   loaded;
    439     uint64_t   t;
    440     tr_info *  info = &tor->info;
    441     static int nextUniqueId = 1;
     437    int          doStart;
     438    uint64_t     loaded;
     439    uint64_t     t;
     440    const char * dir;
     441    static int   nextUniqueId = 1;
     442    tr_info    * info = &tor->info;
    442443
    443444    tr_globalLock( session );
     
    451452
    452453    tor->blockSize = getBlockSize( info->pieceSize );
     454
     455    if( !tr_ctorGetDownloadDir( ctor, TR_FORCE, &dir ) ||
     456        !tr_ctorGetDownloadDir( ctor, TR_FALLBACK, &dir ) )
     457            tor->downloadDir = tr_strdup( dir );
    453458
    454459    tor->lastPieceSize = info->totalSize % info->pieceSize;
Note: See TracChangeset for help on using the changeset viewer.