ParaMEDMEM::ParaFIELD* parafield;
ICoCo::MEDField* icocofield ;
- string tmp_dir = getenv("TMP");
- if (tmp_dir == "")
+ char * tmp_dir_c = getenv("TMP");
+ string tmp_dir;
+ if (tmp_dir_c != NULL)
+ tmp_dir = string(tmp_dir_c);
+ else
tmp_dir = "/tmp";
string filename_xml1 = getResourceFile("Mesh3D_10_2d");
string filename_xml2 = getResourceFile("Mesh3D_11");
ICoCo::MEDField* icocofield ;
- string tmp_dir = getenv("TMP");
- if (tmp_dir == "")
+ char * tmp_dir_c = getenv("TMP");
+ string tmp_dir;
+ if (tmp_dir_c != NULL)
+ tmp_dir = string(tmp_dir_c);
+ else
tmp_dir = "/tmp";
string filename_xml1 = getResourceFile("square1_split");
string filename_xml2 = getResourceFile("square2_split");