diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-13T13·32+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-13T14·03+0200 |
commit | 568a099c889e7ccc5a49b15575078e99acf8bc2f (patch) | |
tree | 92981c6f2c41a7801197e5f1fe8c5e9444fc90f9 /src | |
parent | 6d97d816565505606792050131b5d4d7fca33245 (diff) |
canonPath(): Check against empty paths
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index a640a64c724e..0bd51afd1a9f 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -96,6 +96,8 @@ Path absPath(Path path, Path dir) Path canonPath(const Path & path, bool resolveSymlinks) { + assert(path != ""); + string s; if (path[0] != '/') |