Browse Source

modemm17/M17FrameDecoder: Initialize M17 decoder output buffer

Initialize output_buffer in the M17FrameDecoder constructor.

Found by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
61a048e08c
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 3
      modemm17/M17FrameDecoder.h

3
modemm17/M17FrameDecoder.h

@ -107,7 +107,8 @@ struct M17FrameDecoder @@ -107,7 +107,8 @@ struct M17FrameDecoder
M17FrameDecoder(callback_t callback) :
crc_(0x5935, 0xFFFF),
callback_(callback)
callback_(callback),
output_buffer{}
{}
void update_state(std::array<uint8_t, 240>& lsf_output)

Loading…
Cancel
Save