Verified Commit 99215684 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

bugfix resolve path

when only PSP are given as input path '//////', we got segfault
parent 8a76bc35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ bool resolve_path (const std::string& path, std::string& resolved) {
        start = end;

        /* Skip sequence of multiple path-separators. */
        while(path.at(start) == PSP) {
        while(start < path.size() && path[start] == PSP) {
            ++start;
        }