diff --git a/src/core/model/system-path.cc b/src/core/model/system-path.cc index ae34acca2..b3a64d777 100644 --- a/src/core/model/system-path.cc +++ b/src/core/model/system-path.cc @@ -318,10 +318,10 @@ MakeTemporaryDirectoryName() char* path = nullptr; path = std::getenv("TMP"); - if (!path || std::strlen(path) == 0) + if (!path || std::strlen(path) == 0) { path = std::getenv("TEMP"); - if (path || std::strlen(path) == 0) + if (!path || std::strlen(path) == 0) { path = const_cast("/tmp"); }