fix assert

This commit is contained in:
arvidn 2016-05-13 00:16:51 -04:00
parent a7213d3f5a
commit 84f70a77ee
1 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ namespace libtorrent
{
// no, we don't. add it
e.path_index = int(m_paths.size());
TORRENT_ASSERT(branch_path[0] != '/');
TORRENT_ASSERT(branch_len == 0 || branch_path[0] != '/');
// poor man's emplace back
m_paths.resize(m_paths.size() + 1);