crash bug fixed

This commit is contained in:
spyhole 2004-11-16 13:38:14 +00:00
parent df281f81ae
commit 0659b267cf
1 changed files with 4 additions and 1 deletions

View File

@ -303,7 +303,10 @@ namespace libtorrent
{
return boost::optional<boost::posix_time::ptime>(m_creation_date);
}
return boost::optional<boost::posix_time::ptime>();
// if there's no timestamp in the torrent file, this will return a date of january 1:st 1970.
boost::optional<boost::posix_time::ptime> pt(boost::gregorian::date(1970,1,1));
return pt;
}
void torrent_info::add_tracker(std::string const& url, int tier)