Changeset 1135


Ignore:
Timestamp:
Nov 25, 2006, 7:24:07 PM (15 years ago)
Author:
livings124
Message:

store/release trackerid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scrape/libtransmission/tracker.c

    r1134 r1135  
    308308    }
    309309   
     310    if( tor->trackerid )
     311        free( tor->trackerid );
     312   
    310313    free( tc );
    311314}
     
    505508    if( beFoo = tr_bencDictFind( &beAll, "tracker id" ) )
    506509    {
    507         tor->trackerid = beFoo->val.s.s;
     510        if( tor->trackerid )
     511            free( tor->trackerid );
     512        tor->trackerid = strdup( beFoo->val.s.s );
    508513        tr_inf( "Tracker: tracker id = %s", tor->trackerid);
    509514    }
Note: See TracChangeset for help on using the changeset viewer.