mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 13:40:35 +08:00
ekf2_reply_main coverity fix 143425
This commit is contained in:
committed by
Nuno Marques
parent
8ddd071f18
commit
5331768cb3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user