summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fileutils.cpp2
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)