]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix an inverted if statement in fileutils.
authorSadie Powell <sadie@witchery.services>
Tue, 19 May 2020 02:12:34 +0000 (03:12 +0100)
committerSadie Powell <sadie@witchery.services>
Tue, 19 May 2020 02:14:29 +0000 (03:14 +0100)
src/fileutils.cpp

index f367b128c7a2b84312376ebc89658b84924e0b6b..2bddb1911df33bc9eb8e7d70ea309e9f30e81b89 100644 (file)
@@ -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)