assert that we always have an error code when a file fails to open

This commit is contained in:
Arvid Norberg 2009-01-19 09:26:11 +00:00
parent cedea0980f
commit 52f7bbc185
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ namespace libtorrent
if (m_fd == -1)
{
ec = error_code(errno, get_posix_category());
TORRENT_ASSERT(ec);
return false;
}