graphics/grClip.c Branch condition evaluates to a garbage value
This is technically a false positive as grClipPoints() will always initializes a value to ok1 and ok2 when called. The function is in the same compile unit, so probably the compiler can see this as well and potentially not perform the initiailization begin performed in this commit. But to quieten and remove this item from the analysis report assigning an initialization value. SonarCloud graphics/grClip.c:451 Branch condition evaluates to a garbage value https://sonarcloud.io/project/issues?open=AZJB160MNGfDNup0Rit4&id=dlmiles_magic
This commit is contained in:
parent
10442b6534
commit
ae0cdd9fea
|
|
@ -434,7 +434,7 @@ GrClipLine(x1, y1, x2, y2)
|
|||
{
|
||||
Point p1, p2;
|
||||
Rect c;
|
||||
bool ok1, ok2;
|
||||
bool ok1 = FALSE, ok2 = FALSE;
|
||||
c = ob->r_r;
|
||||
c.r_xbot--; c.r_ybot--;
|
||||
c.r_xtop++; c.r_ytop++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue