Commit 8f62d02f authored by Pierre NARVOR's avatar Pierre NARVOR
Browse files

[files] Fixed bug in path parsing from env variable

parent 02c843d5
......@@ -34,8 +34,8 @@ PathList rtac_data_paths(const std::string& delimiter)
size_t idx = env.find(delimiter);
while(idx != std::string::npos) {
paths.push_back(env.substr(0, idx));
idx = env.find(delimiter);
env.erase(0, paths.back().length() + delimiter.length());
idx = env.find(delimiter);
}
if(env.length() > 0) {
paths.push_back(env);
......
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