forked from Archive/PX4-Autopilot
Fixed coverity CID #12521
This commit is contained in:
parent
9f32a85409
commit
e10d6bf603
|
@ -435,7 +435,7 @@ MavlinkReceiver::handle_message_hil_optical_flow(mavlink_message_t *msg)
|
|||
|
||||
/* Use distance value for range finder report */
|
||||
struct range_finder_report r;
|
||||
memset(&r, 0, sizeof(f));
|
||||
memset(&r, 0, sizeof(r));
|
||||
|
||||
r.timestamp = hrt_absolute_time();
|
||||
r.error_count = 0;
|
||||
|
|
Loading…
Reference in New Issue