diff options
| author | Mark Nefedov <mark_nefedov@outlook.com> | 2020-05-08 19:08:52 +0000 |
|---|---|---|
| committer | Mark Nefedov <mark_nefedov@outlook.com> | 2020-05-08 19:08:52 +0000 |
| commit | fbdc8d5bca8c6fb9e1b059884bb31b39e9cc088d (patch) | |
| tree | 4d6da3f97fdde8f7b783478b273da86504d3e2c8 /Platforms | |
| parent | Clang-format (diff) | |
| download | DiligentCore-fbdc8d5bca8c6fb9e1b059884bb31b39e9cc088d.tar.gz DiligentCore-fbdc8d5bca8c6fb9e1b059884bb31b39e9cc088d.zip | |
If 'Exists' true, pFile is not nullptr.
Diffstat (limited to 'Platforms')
| -rw-r--r-- | Platforms/Linux/src/LinuxFileSystem.cpp | 2 |
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; } |
