From 1b572dd741a674724ce311863e45646a4e4c7179 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 23 Apr 2018 15:59:23 +0200 Subject: [PATCH] Avoid uninitialized value in GridIn::read_mesh --- source/grid/grid_in.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index d46cdc11b7..737840fc75 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -1530,7 +1530,7 @@ void GridIn::read_msh (std::istream &in) else if (cell_type == 15) { // read the indices of nodes given - unsigned int node_index; + unsigned int node_index = 0; switch (gmsh_file_format) { case 1: @@ -1544,6 +1544,8 @@ void GridIn::read_msh (std::istream &in) in >> node_index; break; } + default: + Assert(false, ExcInternalError()); } // we only care about boundary indicators assigned to individual -- 2.39.5