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:
Darryl L. Miles 2024-09-29 23:00:00 +01:00 committed by Tim Edwards
parent 48853b98a3
commit 973c9a4d1a
1 changed files with 1 additions and 1 deletions

View File

@ -3034,7 +3034,7 @@ dbFgets(line, len, f)
{ {
char *cs; char *cs;
int l; int l;
int c; int c = EOF;
do do
{ {