graphics/cairo_orig/grTCairo3.c uninitialized value

Looks like old code.  Looks like local variable 'j' could be removed.
Initialization lowers the severity of concern in this area.
The 'j' variable is now written but never read.

SonarCloud
graphics/cairo_orig/grTCairo3.c:492
The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
https://sonarcloud.io/project/issues?open=AZJB16voNGfDNup0Rig_&id=dlmiles_magic
This commit is contained in:
Darryl L. Miles
2024-10-01 12:36:13 -04:00
committed by Tim Edwards
parent a9b707460b
commit 5e00e3fe1b
+1 -1
View File
@@ -478,7 +478,7 @@ int pixsize;
{
Point *tp;
int np, nptotal;
int i, j;
int i, j = 0;
static int maxnp = 0;
FontChar *ccur;