From daab710d3ca489e827dd18c36e93a7f1dbf03225 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 1 May 2016 06:43:41 +0000 Subject: [PATCH] fix ref to volatile address (thanks to Michele Mocciola) --- Geo/GModelIO_MED.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Geo/GModelIO_MED.cpp b/Geo/GModelIO_MED.cpp index d580cde4e2..94bcd45a11 100644 --- a/Geo/GModelIO_MED.cpp +++ b/Geo/GModelIO_MED.cpp @@ -522,7 +522,8 @@ int GModel::writeMED(const std::string &name, bool saveAll, double scalingFactor return 0; } - char *meshName = (char*)getName().c_str(); + std::string strMeshName = getName(); + char *meshName = (char*)strMeshName.c_str(); // Gmsh always writes 3D unstructured meshes #if (MED_MAJOR_NUM == 3) -- GitLab