Changeset 1280


Ignore:
Timestamp:
Dec 26, 2006, 6:43:46 PM (16 years ago)
Author:
livings124
Message:

define variables at top

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r1279 r1280  
    649649    const uint8_t * body;
    650650    int bodylen, shouldfree, scrapeNeeded;
     651    char * address;
    651652
    652653    tc->dateTry = tr_date();
     
    670671        tr_httpParse( data, len, hdr );
    671672       
    672         char * address = calloc( sizeof( char ), hdr->len+1 );
     673        address = calloc( sizeof( char ), hdr->len+1 );
    673674        snprintf( address, hdr->len+1, "%s", hdr->data );
    674675       
     
    925926    int bodylen, ii;
    926927    benc_val_t scrape, * val1, * val2;
     928    char * address;
    927929
    928930    code = tr_httpResponseCode( data, len );
     
    943945        tr_httpParse( data, len, hdr );
    944946       
    945         char * address = calloc( sizeof( char ), hdr->len+1 );
     947        address = calloc( sizeof( char ), hdr->len+1 );
    946948        snprintf( address, hdr->len+1, "%s", hdr->data );
    947949       
Note: See TracChangeset for help on using the changeset viewer.