calma/CalmaRead.c missing initialization
An FEOF exit path exists in READRH() which causes the output variable(s) to not be assigned a value, then the code makes a decision (branch) based on uninitialized data. SonarCloud detection CalmaRead.c:359:The left operand of '!=' is a garbage value https://sonarcloud.io/project/issues?open=AZJB17gSNGfDNup0Rkp5&id=dlmiles_magic
This commit is contained in:
parent
290887912f
commit
48853b98a3
|
|
@ -345,7 +345,7 @@ done:
|
|||
bool
|
||||
calmaParseUnits()
|
||||
{
|
||||
int nbytes, rtype;
|
||||
int nbytes, rtype = 0;
|
||||
double metersPerDBUnit;
|
||||
double userUnitsPerDBUnit;
|
||||
double cuPerDBUnit;
|
||||
|
|
|
|||
Loading…
Reference in New Issue