canonPath(): Check against empty paths

This commit is contained in:
Eelco Dolstra 2017-04-13 15:32:43 +02:00
parent 6d97d81656
commit 568a099c88
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -96,6 +96,8 @@ Path absPath(Path path, Path dir)
Path canonPath(const Path & path, bool resolveSymlinks)
{
assert(path != "");
string s;
if (path[0] != '/')