mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 09:16:01 +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)) {
|
||||
|
|
|
@ -612,7 +612,7 @@ static void detectBaro(baroSensor_e baroHardwareToUse)
|
|||
|
||||
static void detectMag(magSensor_e magHardwareToUse)
|
||||
{
|
||||
magSensor_e magHardware;
|
||||
magSensor_e magHardware = MAG_NONE;
|
||||
|
||||
#ifdef USE_MAG_HMC5883
|
||||
const hmc5883Config_t *hmc5883Config = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue