From 545e7d2de84a38b3aed1abd116f2b4e6e2ae71f0 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 16 Sep 2019 23:50:56 +0300 Subject: [PATCH] Fixed clang warning --- tests/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.cpp b/tests/utils.cpp index 179116cf..fdb098b7 100644 --- a/tests/utils.cpp +++ b/tests/utils.cpp @@ -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++;