diff --git a/src/mesh.cpp b/src/mesh.cpp --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -1658,7 +1658,7 @@ void Mesh::RepairBoundaryPolygon(void) { Node* Mesh::findNextBoundaryNode(Node* boundary_node) { bool found_next_boundary_node = false; - Node *next_boundary_node; + Node *next_boundary_node = NULL; set boundary_node_owners; // This is a list of the current boundary node's owners' Ids vector neighborIds; // A list of the current boundary node's owners' 2nd neighbor Ids vector *> nodeOwners; // A vector of set pointers where each set contains the owner Ids of the nodes in the neighborIds list.