[Base] Fix unitialized variable in threading test

This commit is contained in:
Joel Linn 2021-05-05 13:52:11 +02:00 committed by Rick Gibbed
parent 4fb5244176
commit 2d9462f02b
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ TEST_CASE("HighResolutionTimer") {
// Time the actual sleep duration
{
const auto interval = 50ms;
std::atomic<uint64_t> counter;
std::atomic<uint64_t> counter(0);
auto start = std::chrono::steady_clock::now();
auto cb = [&counter] { ++counter; };
auto pTimer = HighResolutionTimer::CreateRepeating(interval, cb);