diff options
author | Daniel Agar <daniel@agar.ca> | 2015-01-20 20:56:18 -0500 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-22 15:02:43 +0100 |
commit | e10d6bf603e8728061465271957486b727387d1f (patch) | |
tree | ec7acb0cd2b75aa3644aa4d665b8d41a8553e69d /src/modules | |
parent | 9f32a85409034b2601e42959706a6e0c1a144ce0 (diff) | |
download | px4-firmware-e10d6bf603e8728061465271957486b727387d1f.tar.gz px4-firmware-e10d6bf603e8728061465271957486b727387d1f.tar.bz2 px4-firmware-e10d6bf603e8728061465271957486b727387d1f.zip |
Fixed coverity CID #12521
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index dfbf00b66..e5a21651d 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -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; |