mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 13:01:07 +01:00
ircd:Ⓜ️:event::fetch: Condition on a valid event_idx here.
This commit is contained in:
parent
9cbed56017
commit
c4b17c293a
1 changed files with 2 additions and 1 deletions
|
@ -1664,6 +1664,7 @@ ircd::m::event::fetch::fetch(const event::idx &event_idx,
|
|||
opts
|
||||
}
|
||||
{
|
||||
if(likely(event_idx))
|
||||
seek(*this, event_idx, std::nothrow, opts);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue