diff --git a/src/torrent.cpp b/src/torrent.cpp index 9358932e5..6778e34df 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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;