summaryrefslogtreecommitdiffstats
path: root/Platforms
diff options
context:
space:
mode:
authorMark Nefedov <mark_nefedov@outlook.com>2020-05-08 19:08:52 +0000
committerMark Nefedov <mark_nefedov@outlook.com>2020-05-08 19:08:52 +0000
commitfbdc8d5bca8c6fb9e1b059884bb31b39e9cc088d (patch)
tree4d6da3f97fdde8f7b783478b273da86504d3e2c8 /Platforms
parentClang-format (diff)
downloadDiligentCore-fbdc8d5bca8c6fb9e1b059884bb31b39e9cc088d.tar.gz
DiligentCore-fbdc8d5bca8c6fb9e1b059884bb31b39e9cc088d.zip
If 'Exists' true, pFile is not nullptr.
Diffstat (limited to 'Platforms')
-rw-r--r--Platforms/Linux/src/LinuxFileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Platforms/Linux/src/LinuxFileSystem.cpp b/Platforms/Linux/src/LinuxFileSystem.cpp
index b13f5686..54bc40c5 100644
--- a/Platforms/Linux/src/LinuxFileSystem.cpp
+++ b/Platforms/Linux/src/LinuxFileSystem.cpp
@@ -51,7 +51,7 @@ bool LinuxFileSystem::FileExists(const Diligent::Char* strFilePath)
const auto& Path = DummyFile.GetPath(); // This is necessary to correct slashes
FILE* pFile = fopen(Path.c_str(), "r");
bool Exists = (pFile != nullptr);
- if (Exists && pFile)
+ if (Exists)
fclose(pFile);
return Exists;
}