diff --git a/modules/sync/syncs/httpsynchronization.cpp b/modules/sync/syncs/httpsynchronization.cpp index 25b8b5c2b9..546e8316c9 100644 --- a/modules/sync/syncs/httpsynchronization.cpp +++ b/modules/sync/syncs/httpsynchronization.cpp @@ -196,8 +196,8 @@ bool HttpSynchronization::trySyncFromUrl(std::string listUrl) { std::unordered_map fileSizes; std::mutex fileSizeMutex; - std::atomic_bool startedAllDownloads = false; - std::atomic_size_t nDownloads = 0; + std::atomic_bool startedAllDownloads(false); + std::atomic_size_t nDownloads(0); std::vector> downloads;