Skip to content

Commit

Permalink
- bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
janbender committed Nov 16, 2016
1 parent 8e38a14 commit 7316c53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Demos/Utils/Utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ std::string Utilities::normalizePath(const std::string &path)
}
index++;
}
result = tokens[0];
result = "";
if (path[0] == '/')
result = "/";
result = result + tokens[0];
for (unsigned int i = 1; i < tokens.size(); i++)
result = result + "/" + tokens[i];

Expand Down

0 comments on commit 7316c53

Please sign in to comment.