fix uninitialized variable in disk_io_thread

This commit is contained in:
Arvid Norberg 2013-09-04 04:09:33 +00:00
parent 8bb2c46f42
commit 75789e3958
1 changed files with 5 additions and 1 deletions

View File

@ -1242,7 +1242,11 @@ namespace libtorrent
TORRENT_ASSERT(j.cache_min_time >= 0); TORRENT_ASSERT(j.cache_min_time >= 0);
mutex::scoped_lock l(m_piece_mutex); mutex::scoped_lock l(m_piece_mutex);
if (!m_settings.use_read_cache) return -2; if (!m_settings.use_read_cache)
{
hit = false;
return -2;
}
cache_piece_index_t& idx = m_read_pieces.get<0>(); cache_piece_index_t& idx = m_read_pieces.get<0>();
cache_piece_index_t::iterator p cache_piece_index_t::iterator p