mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Fix possible uninitialised variable usage
This commit is contained in:
parent
2e549dbbf9
commit
8429de5b8c
2 changed files with 2 additions and 2 deletions
|
@ -2506,7 +2506,7 @@ static void cliSet(char *cmdline)
|
|||
if (strncasecmp(cmdline, valueTable[i].name, strlen(valueTable[i].name)) == 0 && variableNameLength == strlen(valueTable[i].name)) {
|
||||
|
||||
bool changeValue = false;
|
||||
int_float_value_t tmp;
|
||||
int_float_value_t tmp = {0};
|
||||
switch (valueTable[i].type & VALUE_MODE_MASK) {
|
||||
case MODE_DIRECT: {
|
||||
if(*eqptr != 0 && strspn(eqptr, "0123456789.+-") == strlen(eqptr)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue