fixed a valgrind error

this error is harmless, but false positives can disguise real errors
This commit is contained in:
Andrew Tridgell 2011-11-17 12:48:40 +11:00 committed by Pat Hickey
parent 3a0b1d1903
commit aa558eb033
1 changed files with 1 additions and 0 deletions

View File

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