Skip to content
Snippets Groups Projects
Commit daab710d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix ref to volatile address (thanks to Michele Mocciola)

parent cef2e611
No related branches found
No related tags found
No related merge requests found
...@@ -522,7 +522,8 @@ int GModel::writeMED(const std::string &name, bool saveAll, double scalingFactor ...@@ -522,7 +522,8 @@ int GModel::writeMED(const std::string &name, bool saveAll, double scalingFactor
return 0; return 0;
} }
char *meshName = (char*)getName().c_str(); std::string strMeshName = getName();
char *meshName = (char*)strMeshName.c_str();
// Gmsh always writes 3D unstructured meshes // Gmsh always writes 3D unstructured meshes
#if (MED_MAJOR_NUM == 3) #if (MED_MAJOR_NUM == 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment