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

forgot fclose !

parent 20272b5d
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ void GetOptions(int argc, char *argv[])
i += 2;
}
else if(argv[i]){
Msg::InitializeOnelab(argv[i], "");
Msg::InitializeOnelab(argv[i]);
i += 1;
}
else
......
......@@ -46,7 +46,10 @@ int GModel::readMSH(const std::string &name)
if(!fgets(str, sizeof(str), fp)) return 0;
int format, size;
if(sscanf(str, "%lf %d %d", &version, &format, &size) != 3) return 0;
if(version < 3.) return _readMSH2(name);
if(version < 3.){
fclose(fp);
return _readMSH2(name);
}
if(format){
binary = true;
Msg::Info("Mesh is in binary format");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment