diff --git a/src/modules/ekf2_replay/ekf2_replay_main.cpp b/src/modules/ekf2_replay/ekf2_replay_main.cpp index 0ae81c704a..30147af542 100644 --- a/src/modules/ekf2_replay/ekf2_replay_main.cpp +++ b/src/modules/ekf2_replay/ekf2_replay_main.cpp @@ -917,7 +917,7 @@ void Ekf2Replay::task_main() if (header[2] == LOG_FORMAT_MSG) { // format message - struct log_format_s f; + struct log_format_s f = {}; if (::read(fd, &f.type, sizeof(f)) != sizeof(f)) { PRINT_READ_ERROR;