summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-05-19 03:12:34 +0100
committerSadie Powell <sadie@witchery.services>2020-05-19 03:14:29 +0100
commit270e77e05f5559401bf9448590ea81840de52b5e (patch)
tree9dfbc91ce966de6dc4890cd574b7823be1090e9f
parentd2236175a369fd4d8f509c04beac80e31987a09f (diff)
Fix an inverted if statement in fileutils.
-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)