Changeset 10785
- Timestamp:
- Jun 17, 2010, 2:49:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils/show.c
r10783 r10785 180 180 CURLcode res; 181 181 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 ) 185 186 continue; 187 188 url = tr_strdup_printf( "%s%cinfo_hash=%s", 189 scrape, 190 strchr( scrape, '?' ) ? '&' : '?', 191 inf->hashEscaped ); 186 192 187 193 printf( "%s ... ", url ); … … 245 251 } 246 252 253 curl_easy_cleanup( curl ); 247 254 evbuffer_free( buf ); 248 curl_easy_cleanup( curl );255 tr_free( url ); 249 256 } 250 257 }
Note: See TracChangeset
for help on using the changeset viewer.