From d6b0efbea411978710fe4989ba1c861893cd2dfe Mon Sep 17 00:00:00 2001 From: Kevin Athey Date: Wed, 8 Jun 2022 16:06:20 -0700 Subject: [PATCH] initialize members of 'loc' instead of the array. --- Triangulation_3/include/CGAL/Triangulation_hierarchy_3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Triangulation_3/include/CGAL/Triangulation_hierarchy_3.h b/Triangulation_3/include/CGAL/Triangulation_hierarchy_3.h index ac69e874982..7281a4d316b 100644 --- a/Triangulation_3/include/CGAL/Triangulation_hierarchy_3.h +++ b/Triangulation_3/include/CGAL/Triangulation_hierarchy_3.h @@ -439,7 +439,7 @@ protected: struct locs { Cell_handle pos; - int li, lj; + int li = -1, lj = -1; Locate_type lt; }; @@ -578,7 +578,7 @@ insert_and_give_new_cells(const Point &p, OutputItCells fit, Cell_handle start) Locate_type lt; int i, j; // locate using hierarchy - locs positions[maxlevel] = {-1}; + locs positions[maxlevel]; locate(p, lt, i, j, positions, start); // insert at level 0 Vertex_handle vertex = hierarchy[0]->insert_and_give_new_cells(p,