From 5e00e3fe1bb18433b248ac48870f120f78301cb2 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sun, 29 Sep 2024 23:00:00 +0100 Subject: [PATCH] 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 --- graphics/cairo_orig/grTCairo3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/cairo_orig/grTCairo3.c b/graphics/cairo_orig/grTCairo3.c index d86d3f0f..387fce35 100644 --- a/graphics/cairo_orig/grTCairo3.c +++ b/graphics/cairo_orig/grTCairo3.c @@ -478,7 +478,7 @@ int pixsize; { Point *tp; int np, nptotal; - int i, j; + int i, j = 0; static int maxnp = 0; FontChar *ccur;