Plane: Initialize a string array

This commit is contained in:
murata 2022-06-08 23:28:45 +09:00 committed by Andrew Tridgell
parent 1aae0610a6
commit 501bd61820
1 changed files with 1 additions and 1 deletions

View File

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