Verified Commit 50b0a755 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

bugfix: resolve path on root dir

when the resolved path is the root dir we were returning an empty string
parent 99215684
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -91,6 +91,10 @@ bool resolve_path (const std::string& path, std::string& resolved) {
        CTX->log()->debug("{}() internal: '{}'", __func__, resolved);
        return true;
    }

    if (resolved.size() == 0) {
        resolved.push_back(PSP);
    }
    CTX->log()->debug("{}() external: '{}'", __func__, resolved);
    return false;
}