Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
4c4f64e2
Commit
4c4f64e2
authored
Mar 28, 2018
by
LEFEBVREJP email
Browse files
Changing order of PATH separator in search_env_path.
parent
c0fabf63
Pipeline
#12771
failed with stages
in 6 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixcore/system.cc
View file @
4c4f64e2
...
...
@@ -371,11 +371,11 @@ bool remove_file(const std::string &path)
std
::
string
search_env_path
(
const
std
::
string
&
filename
)
{
std
::
string
path_env
=
env
(
"PATH"
);
std
::
vector
<
std
::
string
>
list
=
split_string
(
"
:
"
,
path_env
);
std
::
vector
<
std
::
string
>
list
=
split_string
(
"
;
"
,
path_env
);
if
(
list
.
size
()
==
1
)
// we didn't split anything
{
// guess it was ':' separator, try '
;
'
list
=
split_string
(
"
;
"
,
path_env
);
// guess it was ':' separator, try '
:
'
list
=
split_string
(
"
:
"
,
path_env
);
}
for
(
size_t
i
=
0
;
i
<
list
.
size
();
++
i
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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