From 270e77e05f5559401bf9448590ea81840de52b5e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 19 May 2020 03:12:34 +0100 Subject: Fix an inverted if statement in fileutils. --- src/fileutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3