Commit 9b001f1d by Christophe Geuzaine

return -1 in getInfoMSH if the type is unknown

parent 6d10f9fd
......@@ -1648,7 +1648,7 @@ unsigned int MElement::getInfoMSH(const int typeMSH, const char **const name)
default:
Msg::Error("Unknown type of element %d", typeMSH);
if(name) *name = "Unknown";
return 0;
return -1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment