Fixed coverity CID #12521

This commit is contained in:
Daniel Agar 2015-01-20 20:56:18 -05:00 committed by Lorenz Meier
parent 9f32a85409
commit e10d6bf603
1 changed files with 1 additions and 1 deletions

View File

@ -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;