From 26978543970b7691e5aeaf02c56be67dbbe20fcd Mon Sep 17 00:00:00 2001 From: Hannes Brandt Date: Mon, 11 Dec 2023 14:25:33 +0100 Subject: [PATCH] feature hanging-corners: memset to zero in mesh_params_init --- src/p4est_mesh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p4est_mesh.c b/src/p4est_mesh.c index 39e909df9..f87009999 100644 --- a/src/p4est_mesh.c +++ b/src/p4est_mesh.c @@ -1215,6 +1215,8 @@ p4est_mesh_memory_used (p4est_mesh_t * mesh) void p4est_mesh_params_init (p4est_mesh_params_t * params) { + memset (params, 0, sizeof (p4est_mesh_params_t)); + params->compute_level_lists = 0; params->compute_tree_index = 0; params->btype = P4EST_CONNECT_FACE;