commit aa7e38ff0589cbb83f563336922fc2b90c2af170
parent cbec073158c49ed1b36b8b6a0179708ea467b462
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Sun, 1 Jan 2017 21:24:00 -0800
src: use PATH_SEP instead of hardcoded ':'
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/inst_frontend.cc b/src/inst_frontend.cc
@@ -102,14 +102,14 @@ InstFrontend::clean_PATH()
bool first_component = 1;
bool found_citrun_path = 0;
- while (std::getline(path_ss, component, ':')) {
+ while (std::getline(path_ss, component, PATH_SEP)) {
if (component.compare(CITRUN_SHARE) == 0) {
found_citrun_path = 1;
continue;
}
if (first_component == 0)
- new_path << ":";
+ new_path << PATH_SEP;
// It wasn't CITRUN_SHARE, keep it
new_path << component;