forked from lix-project/lix
canonPath(): Check against empty paths
This commit is contained in:
parent
6d97d81656
commit
568a099c88
|
@ -96,6 +96,8 @@ Path absPath(Path path, Path dir)
|
||||||
|
|
||||||
Path canonPath(const Path & path, bool resolveSymlinks)
|
Path canonPath(const Path & path, bool resolveSymlinks)
|
||||||
{
|
{
|
||||||
|
assert(path != "");
|
||||||
|
|
||||||
string s;
|
string s;
|
||||||
|
|
||||||
if (path[0] != '/')
|
if (path[0] != '/')
|
||||||
|
|
Loading…
Reference in a new issue