Skip to content

Commit 782bd1b

Browse files
committed
Merge pull request CGAL#6622 from kda/initialize
initialize some stack variables
2 parents cefa3d9 + d6b0efb commit 782bd1b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Triangulation_3/include/CGAL/Delaunay_triangulation_3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ Delaunay_triangulation_3<Gt,Tds,Default,Lds>::
10761076
insert(const Point& p, Cell_handle start, bool *could_lock_zone)
10771077
{
10781078
Locate_type lt;
1079-
int li, lj;
1079+
int li = -1, lj = -1;
10801080

10811081
// Parallel
10821082
if(could_lock_zone)

Triangulation_3/include/CGAL/Triangulation_3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3862,7 +3862,7 @@ Triangulation_3<GT,Tds,Lds>::
38623862
insert(const Point& p, Cell_handle start)
38633863
{
38643864
Locate_type lt;
3865-
int li, lj;
3865+
int li = -1, lj = -1;
38663866
Cell_handle c = locate(p, lt, li, lj, start);
38673867
return insert(p, lt, c, li, lj);
38683868
}

Triangulation_3/include/CGAL/Triangulation_hierarchy_3.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ class Triangulation_hierarchy_3
439439

440440
struct locs {
441441
Cell_handle pos;
442-
int li, lj;
442+
int li = -1, lj = -1;
443443
Locate_type lt;
444444
};
445445

@@ -538,7 +538,7 @@ insert(const Point &p, Cell_handle start)
538538
{
539539
int vertex_level = random_level();
540540
Locate_type lt;
541-
int i, j;
541+
int i = -1, j = -1;
542542
// locate using hierarchy
543543
locs positions[maxlevel];
544544
locate(p, lt, i, j, positions, start);

0 commit comments

Comments
 (0)