ignore empty strings when passed as a tracker url to the torrent constructor

This commit is contained in:
Arvid Norberg 2009-04-26 19:16:55 +00:00
parent 3ecbcc8fe7
commit 5fc239bd23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ namespace libtorrent
if (p.name && !p.ti) m_name.reset(new std::string(p.name));
if (p.tracker_url)
if (p.tracker_url && std::strlen(p.tracker_url) > 0)
{
m_trackers.push_back(announce_entry(p.tracker_url));
m_trackers.back().fail_limit = 0;