diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ConfigPath.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ConfigPath.cxx b/src/ConfigPath.cxx index c02f830c5..7096bcc82 100644 --- a/src/ConfigPath.cxx +++ b/src/ConfigPath.cxx @@ -84,11 +84,14 @@ ParsePath(const char *path, Error &error) #ifndef WIN32 if (path[0] == '~') { - Path home = Path::Null(); - ++path; - if (*path == '/' || *path == '\0') { + if (*path == '\0') + return GetConfiguredHome(error); + + Path home = Path::Null(); + + if (*path == '/') { home = GetConfiguredHome(error); ++path; |