database/DBio.c read of variable before initialization
Due to FEOF condition and handling it is possible local variable 'c' is not initialized before being read and compared. SonarCloud retails DBio.c:3049 The left operand of '==' is a garbage value https://sonarcloud.io/project/issues?open=AZJB16rxNGfDNup0Ribf&id=dlmiles_magic
This commit is contained in:
parent
48853b98a3
commit
973c9a4d1a
|
|
@ -3034,7 +3034,7 @@ dbFgets(line, len, f)
|
||||||
{
|
{
|
||||||
char *cs;
|
char *cs;
|
||||||
int l;
|
int l;
|
||||||
int c;
|
int c = EOF;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue