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++;