From 278a5c1ee001cff8b33bc001f7719f280c4bb2da Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 13 Feb 2018 17:32:11 +0100 Subject: Properly initialise PacketFile fields --- src/input/File.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/input') diff --git a/src/input/File.h b/src/input/File.h index 62a6707..b574c39 100644 --- a/src/input/File.h +++ b/src/input/File.h @@ -81,16 +81,16 @@ class PacketFile : public FileBase { virtual int readFrame(uint8_t* buffer, size_t size); protected: - std::array m_packetData; - size_t m_packetLength; + std::array m_packetData; + size_t m_packetLength = 0; /* Enhanced packet mode enables FEC for MSC packet mode * as described in EN 300 401 Clause 5.3.5 */ bool m_enhancedPacketEnabled = false; std::array,12> m_enhancedPacketData; - size_t m_enhancedPacketWaiting; - size_t m_enhancedPacketLength; + size_t m_enhancedPacketWaiting = 0; + size_t m_enhancedPacketLength = 0; }; }; -- cgit v1.2.3