0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 02:18:53 +02:00

ircd:Ⓜ️:event::fetch: Condition on a valid event_idx here.

This commit is contained in:
Jason Volk 2019-01-16 16:38:58 -08:00
parent 9cbed56017
commit c4b17c293a

View file

@ -1664,7 +1664,8 @@ ircd::m::event::fetch::fetch(const event::idx &event_idx,
opts
}
{
seek(*this, event_idx, std::nothrow, opts);
if(likely(event_idx))
seek(*this, event_idx, std::nothrow, opts);
}
//