Changeset 4270


Ignore:
Timestamp:
Dec 21, 2007, 10:38:01 PM (14 years ago)
Author:
charles
Message:

fix a different r4267 bug, also reported by John_Clay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r4268 r4270  
    452452    tr_ctor * ctor = tr_ctorNew( h );
    453453    tr_ctorSetMetainfoFromFile( ctor, path );
    454     tr_ctorSetDestination( ctor, TR_FORCE, destination );
     454    if( destination && *destination )
     455        tr_ctorSetDestination( ctor, TR_FORCE, destination );
    455456    err = tr_torrentParseFromCtor( h, ctor, setmeInfo );
    456457    tr_ctorFree( ctor );
     
    469470    tr_ctor * ctor = tr_ctorNew( h );
    470471    tr_ctorSetMetainfoFromFile( ctor, path );
    471     tr_ctorSetDestination( ctor, TR_FORCE, destination );
     472    if( destination && *destination )
     473        tr_ctorSetDestination( ctor, TR_FORCE, destination );
    472474    tr_ctorSetPaused( ctor, TR_FORCE, isPaused );
    473475    tor = tr_torrentNew( h, ctor, setmeError );
     
    486488    tr_ctor * ctor = tr_ctorNew( h );
    487489    tr_ctorSetMetainfoFromHash( ctor, hashStr );
    488     tr_ctorSetDestination( ctor, TR_FORCE, destination );
     490    if( destination && *destination )
     491        tr_ctorSetDestination( ctor, TR_FORCE, destination );
    489492    err = tr_torrentParseFromCtor( h, ctor, setmeInfo );
    490493    tr_ctorFree( ctor );
     
    503506    tr_ctor * ctor = tr_ctorNew( h );
    504507    tr_ctorSetMetainfoFromHash( ctor, hashStr );
    505     tr_ctorSetDestination( ctor, TR_FORCE, destination );
     508    if( destination && *destination )
     509        tr_ctorSetDestination( ctor, TR_FORCE, destination );
    506510    tr_ctorSetPaused( ctor, TR_FORCE, isPaused );
    507511    tor = tr_torrentNew( h, ctor, setmeError );
     
    522526    tr_ctor * ctor = tr_ctorNew( h );
    523527    tr_ctorSetMetainfo( ctor, metainfo, len );
    524     tr_ctorSetDestination( ctor, TR_FORCE, destination );
     528    if( destination && *destination )
     529        tr_ctorSetDestination( ctor, TR_FORCE, destination );
    525530    tr_ctorSetPaused( ctor, TR_FORCE, isPaused );
    526531    tor = tr_torrentNew( h, ctor, setmeError );
Note: See TracChangeset for help on using the changeset viewer.