mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 08:44:08 -04:00
fixed a valgrind warning
need to initialise all fields
This commit is contained in:
parent
5194fe489d
commit
407d66b41e
@ -61,6 +61,7 @@ static struct Location get_cmd_with_index(int i)
|
|||||||
// Find out proper location in memory by using the start_byte position + the index
|
// Find out proper location in memory by using the start_byte position + the index
|
||||||
// --------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------
|
||||||
if (i > g.command_total) {
|
if (i > g.command_total) {
|
||||||
|
memset(&temp, 0, sizeof(temp));
|
||||||
temp.id = CMD_BLANK;
|
temp.id = CMD_BLANK;
|
||||||
}else{
|
}else{
|
||||||
// read WP position
|
// read WP position
|
||||||
|
Loading…
Reference in New Issue
Block a user