Commit b6e1a185 authored by Dave Moxey's avatar Dave Moxey

Merge branch 'fix/FldToVtk-trailing-slash' of /opt/gitlab/repositories/nektar

parents 776d16ce 13ef83d8
......@@ -44,6 +44,10 @@ int main(int argc, char *argv[])
for (int n = 1; n < argc; ++n)
{
string fname = std::string(argv[n]);
if (fname.substr(fname.length() - 1, 1) == "/")
{
fname = fname.substr(0, fname.length() - 1);
}
int fdot = fname.find_last_of('.');
if (fdot != std::string::npos)
{
......
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