mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
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:
committed by
Tim Edwards
parent
48853b98a3
commit
973c9a4d1a
+1
-1
@@ -3034,7 +3034,7 @@ dbFgets(line, len, f)
|
|||||||
{
|
{
|
||||||
char *cs;
|
char *cs;
|
||||||
int l;
|
int l;
|
||||||
int c;
|
int c = EOF;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user