Ignore:
Timestamp:
Apr 10, 2008, 7:02:24 PM (14 years ago)
Author:
charles
Message:

#853: transmission-(daemon|gtk) segfault when querying status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/torrents.c

    r5517 r5579  
    231231}
    232232
     233tr_torrent *
     234torrent_handle( int id )
     235{
     236    const struct tor * tor = idlookup( id );
     237    return tor ? tor->tor : NULL;
     238}
     239   
    233240const tr_info *
    234241torrent_info( int id )
    235242{
    236     const struct tor * tor = idlookup( id );
    237     return tor ? tr_torrentInfo( tor->tor ) : NULL;
     243    return tr_torrentInfo( torrent_handle( id ) );
    238244}
    239245
     
    241247torrent_stat( int id )
    242248{
    243     struct tor * tor = idlookup( id );
    244     return tor ? tr_torrentStat( tor->tor ) : NULL;
     249    return tr_torrentStat( torrent_handle( id ) );
    245250}
    246251
Note: See TracChangeset for help on using the changeset viewer.