Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre NARVOR
rtac_base
Commits
8f62d02f
Commit
8f62d02f
authored
Sep 24, 2021
by
Pierre NARVOR
Browse files
[files] Fixed bug in path parsing from env variable
parent
02c843d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/files.cpp
View file @
8f62d02f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment