mirror of https://github.com/ArduPilot/ardupilot
Plane: Initialize a string array
This commit is contained in:
parent
1aae0610a6
commit
501bd61820
|
@ -158,7 +158,7 @@ bool AP_Arming_Plane::quadplane_checks(bool display_failure)
|
|||
}
|
||||
|
||||
// ensure controllers are OK with us arming:
|
||||
char failure_msg[50];
|
||||
char failure_msg[50] = {};
|
||||
if (!plane.quadplane.pos_control->pre_arm_checks("PSC", failure_msg, ARRAY_SIZE(failure_msg))) {
|
||||
check_failed(ARMING_CHECK_PARAMETERS, display_failure, "Bad parameter: %s", failure_msg);
|
||||
ret = false;
|
||||
|
|
Loading…
Reference in New Issue