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