Fixed clang warning

This commit is contained in:
gabime 2019-09-16 23:50:56 +03:00
parent a9ed6b352b
commit 545e7d2de8
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ std::size_t count_files(const std::string &folder)
}
struct dirent *ep;
while (ep = readdir(dp))
while ((ep = readdir(dp)) != nullptr)
{
if (ep->d_name[0] != '.')
counter++;