Fix potential uninitialized variable in clipper (#5881)

* Fix potential uninitialized variable in clipper

* Clipper: Fix second parameter as well.

---------

Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
This commit is contained in:
Matt Iselin
2024-11-19 14:31:47 -08:00
committed by GitHub
parent 41cc2f66a4
commit c867ddbc04

View File

@@ -1567,7 +1567,7 @@ bool Clipper::ExecuteInternal()
m_SortedEdges = 0;
succeeded = true;
cInt botY, topY;
cInt botY = 0, topY = 0;
if (!PopScanbeam(botY)) return false;
InsertLocalMinimaIntoAEL(botY);
while (PopScanbeam(topY) || LocalMinimaPending())