Changeset 10785


Ignore:
Timestamp:
Jun 17, 2010, 2:49:39 AM (13 years ago)
Author:
charles
Message:

(trunk utils) #3302 "Scraping with transmission-show grabs /scrape without any GET parameters" -- fixed in trunk for 2.10. Thanks LolCol?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils/show.c

    r10783 r10785  
    180180        CURLcode res;
    181181        struct evbuffer * buf;
    182         const char * url = inf->trackers[i].scrape;
    183 
    184         if( url == NULL )
     182        const char * scrape = inf->trackers[i].scrape;
     183        char * url;
     184
     185        if( scrape == NULL )
    185186            continue;
     187
     188        url = tr_strdup_printf( "%s%cinfo_hash=%s",
     189                                scrape,
     190                                strchr( scrape, '?' ) ? '&' : '?',
     191                                inf->hashEscaped );
    186192
    187193        printf( "%s ... ", url );
     
    245251        }
    246252
     253        curl_easy_cleanup( curl );
    247254        evbuffer_free( buf );
    248         curl_easy_cleanup( curl );
     255        tr_free( url );
    249256    }
    250257}
Note: See TracChangeset for help on using the changeset viewer.