value initialize introduction so that expiresAt defaults to zero

pull/1669/head
Jeff Becker 3 years ago
parent 9f353238af
commit d45f0f8951
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -158,10 +158,10 @@ namespace llarp
OutboundContext::ShiftIntroRouter(const RouterID r)
{
const auto now = Now();
Introduction selectedIntro;
Introduction selectedIntro{};
for (const auto& intro : currentIntroSet.intros)
{
if (intro.expiresAt > selectedIntro.expiresAt && intro.router != r)
if (intro.expiresAt > selectedIntro.expiresAt and intro.router != r)
{
selectedIntro = intro;
}

Loading…
Cancel
Save