mirror of
https://github.com/transmission/transmission
synced 2024-12-22 07:42:37 +00:00
fix: 3579 assertion when RPC client asks for torrent-id 0 (#3683)
Fixes #3579.
This commit is contained in:
parent
da3d83eaed
commit
d2852b6043
1 changed files with 0 additions and 1 deletions
|
@ -44,7 +44,6 @@ struct CompareTorrentByHash
|
|||
|
||||
tr_torrent* tr_torrents::get(tr_torrent_id_t id)
|
||||
{
|
||||
TR_ASSERT(0 < id);
|
||||
TR_ASSERT(static_cast<size_t>(id) < std::size(by_id_));
|
||||
if (static_cast<size_t>(id) >= std::size(by_id_))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue