From be73b099a73bf382e0d582c4f6f005dd9b133b12 Mon Sep 17 00:00:00 2001 From: GUVWAF Date: Fri, 8 Nov 2024 22:14:25 +0100 Subject: [PATCH] Fix cppcheck error --- src/mesh/PacketHistory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesh/PacketHistory.cpp b/src/mesh/PacketHistory.cpp index 589d3b74f..5351821cc 100644 --- a/src/mesh/PacketHistory.cpp +++ b/src/mesh/PacketHistory.cpp @@ -112,6 +112,8 @@ bool PacketHistory::wasRelayer(const uint8_t relayer, const uint32_t id, const N PacketRecord r; r.id = id; r.sender = sender; + r.rxTimeMsec = 0; + r.next_hop = 0; auto found = recentPackets.find(r); if (found == recentPackets.end()) {