Skip to content
Permalink
Browse files

path, bugfix: result error in path.resolve root test case.

  • Loading branch information...
xicilion committed Jun 24, 2019
1 parent 6e8e02c commit 83cc7399a4f02493c475e45b472e63cd6fd5120a
Showing with 8 additions and 1 deletion.
  1. +8 −1 fibjs/include/path.h
@@ -565,7 +565,14 @@ inline result_t _resolve(OptArgs ps, exlib::string& retVal)
p.resolvePosix(s);
}

return _normalize(p.str(), retVal, true);
result_t hr = _normalize(p.str(), retVal, true);
if (hr < 0)
return hr;

if (retVal.empty())
retVal = "/";

return 0;
}

inline result_t _resolve(exlib::string& path)

0 comments on commit 83cc739

Please sign in to comment.
You can’t perform that action at this time.