From 5fc239bd23e2ba7ddf6ba085b8b5721da9efde1c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 26 Apr 2009 19:16:55 +0000 Subject: [PATCH] ignore empty strings when passed as a tracker url to the torrent constructor --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;