Skip to content

Commit 7316c53

Browse files
committed
- bugfix
1 parent 8e38a14 commit 7316c53

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Demos/Utils/Utilities.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ std::string Utilities::normalizePath(const std::string &path)
7676
}
7777
index++;
7878
}
79-
result = tokens[0];
79+
result = "";
80+
if (path[0] == '/')
81+
result = "/";
82+
result = result + tokens[0];
8083
for (unsigned int i = 1; i < tokens.size(); i++)
8184
result = result + "/" + tokens[i];
8285

0 commit comments

Comments
 (0)