From 76de3e08283afb1c16f1b6cb1af87eeb10aa1edf Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Wed, 15 Nov 2017 12:35:06 +0200 Subject: [PATCH] clipper: Add assertion to silence a static analyzer warning --- contrib/clipper/clipper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/clipper/clipper.cpp b/contrib/clipper/clipper.cpp index d10cb1e5c..074f22b21 100644 --- a/contrib/clipper/clipper.cpp +++ b/contrib/clipper/clipper.cpp @@ -2431,6 +2431,7 @@ void Clipper::ProcessHorizontal(TEdge *horzEdge) if ( horzEdge->outIdx >= 0 ) IntersectEdges( horzEdge, eMaxPair, IntPoint(horzEdge->xtop, horzEdge->ycurr), ipBoth); + assert(eMaxPair); if (eMaxPair->outIdx >= 0) throw clipperException("ProcessHorizontal error"); DeleteFromAEL(eMaxPair); DeleteFromAEL(horzEdge);