mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
fixed a valgrind error
this error is harmless, but false positives can disguise real errors
This commit is contained in:
parent
c8b592f8a7
commit
f071321efa
@ -1653,6 +1653,7 @@ GCS_MAVLINK::queued_param_send()
|
||||
value = vp->cast_to_float();
|
||||
if (!isnan(value)) {
|
||||
char param_name[ONBOARD_PARAM_NAME_LENGTH]; /// XXX HACK
|
||||
memset(param_name, 0, sizeof(param_name));
|
||||
vp->copy_name(param_name, sizeof(param_name));
|
||||
|
||||
mavlink_msg_param_value_send(
|
||||
|
Loading…
Reference in New Issue
Block a user