From e0abf93ce150dd8838bd350e996552d275659e98 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 30 Dec 2024 12:54:45 +0100 Subject: [PATCH] fix empty names in mesh distribute --- libsrc/meshing/parallelmesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/parallelmesh.cpp b/libsrc/meshing/parallelmesh.cpp index 43cc1a71..e333e068 100644 --- a/libsrc/meshing/parallelmesh.cpp +++ b/libsrc/meshing/parallelmesh.cpp @@ -1228,7 +1228,7 @@ namespace netgen auto write_names = [&] (auto & array) { for (int k = 0; k < array.Size(); k++) { int s = name_sizes[tot_nn]; - array[k] = s ? new string(&compiled_names[tot_size], s) : nullptr; + array[k] = s ? new string(&compiled_names[tot_size], s) : new string(""); tot_nn++; tot_size += s; }