diff options
| author | 2020-05-19 03:12:34 +0100 | |
|---|---|---|
| committer | 2020-05-19 03:14:29 +0100 | |
| commit | 270e77e05f5559401bf9448590ea81840de52b5e (patch) | |
| tree | 9dfbc91ce966de6dc4890cd574b7823be1090e9f /src/fileutils.cpp | |
| parent | Fix the documentation comments in config.h. (diff) | |
Fix an inverted if statement in fileutils.
Diffstat (limited to 'src/fileutils.cpp')
| -rw-r--r-- | src/fileutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileutils.cpp b/src/fileutils.cpp index f367b128c..2bddb1911 100644 --- a/src/fileutils.cpp +++ b/src/fileutils.cpp @@ -77,7 +77,7 @@ std::string FileSystem::ExpandPath(const std::string& base, const std::string& f return fragment; // The fragment is relative to a home directory, expand that. - if (fragment.compare(0, 2, "~/", 2)) + if (!fragment.compare(0, 2, "~/", 2)) { const char* homedir = getenv("HOME"); if (homedir && *homedir) |
