Commit c890c6ef authored by David E. DeMarle's avatar David E. DeMarle

Address a regression introduced when backporting vtk's changes

parent d1f261a9
......@@ -52,6 +52,13 @@ XdmfSystemUtils::getRealPath(const std::string & path)
xmlParseURIReference(ref, path.c_str());
char realPath[PATH_MAX];
char *rp = realpath(ref->path, realPath);
if (rp == 0)
{
//indicates a failure that we are silently ignoring
//TODO: realPath is now undefined but in practice
//ends up path.c_str()
rp = realPath;
}
xmlFreeURI(ref);
return std::string(rp);
}
......
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