graphics/cairo_orig/grTCairo5.c uninitialized local variable

Looks like old code.  Based on cairo_fill() action state this is initialized to
no-op by default.

SonarCloud
graphics/cairo_orig/grTCairo5.c:107 The left operand of '!=' is a garbage value
https://sonarcloud.io/project/issues?open=AZJB16wANGfDNup0RiiZ&id=dlmiles_magic
This commit is contained in:
Darryl L. Miles 2024-09-29 23:00:00 +01:00 committed by Tim Edwards
parent 5e00e3fe1b
commit 10442b6534
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ Point *p; /* screen pos of lower left corner */
}
}
if ((!anyObscure) && (GEO_SURROUND(&grCurClip, &bBox)) ) {
int *pixelp, x, y, thisp, lastp;
int *pixelp, x, y, thisp, lastp = -1;
int color, red, green, blue, mask;
/* no clipping, try to go quickly */