From bb1a04f4b0ffa7ac0f81042cea39eae647bb8450 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Mon, 25 Jan 2021 13:07:04 +0200 Subject: [PATCH] Silence an uninitialized variable warning --- idlib/geometry/TraceModel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/idlib/geometry/TraceModel.cpp b/idlib/geometry/TraceModel.cpp index 56e0958..62dd273 100644 --- a/idlib/geometry/TraceModel.cpp +++ b/idlib/geometry/TraceModel.cpp @@ -1164,6 +1164,7 @@ int idTraceModel::GetOrderedSilhouetteEdges( const int edgeIsSilEdge[MAX_TRACEMO int i, j, edgeNum, numSilEdges, nextSilVert; int unsortedSilEdges[MAX_TRACEMODEL_EDGES]; + unsortedSilEdges[0] = 0; numSilEdges = 0; for ( i = 1; i <= numEdges; i++ ) { if ( edgeIsSilEdge[i] ) {