(trunk libT) #2110: "allow adding torrent files with no trackers" -- tr_torrentParse() shouldn't fail just because there aren't any announce URLs in the metadata

This commit is contained in:
Charles Kerr 2009-11-25 05:13:58 +00:00
parent 5e51618f83
commit 4df666bb22
1 changed files with 2 additions and 3 deletions

View File

@ -258,8 +258,7 @@ tr_convertAnnounceToScrape( const char * announce )
}
static const char*
getannounce( tr_info * inf,
tr_benc * meta )
getannounce( tr_info * inf, tr_benc * meta )
{
const char * str;
tr_tracker_info * trackers = NULL;
@ -334,7 +333,7 @@ getannounce( tr_info * inf,
inf->trackers = trackers;
inf->trackerCount = trackerCount;
return inf->trackerCount ? NULL : "announce";
return NULL;
}
static void