Explicitly instantiate the progress-bar counter in copy-sigs

This commit is contained in:
Théophane Hufschmitt
2024-03-06 06:56:03 +01:00
committed by GitHub
parent 5d534dc30f
commit 9b40a46abe

View File

@@ -46,7 +46,7 @@ struct CmdCopySigs : StorePathsCommand
Activity act(*logger, lvlInfo, actCopyPaths, "copying signatures");
act.setExpected(actCopyPaths, storePaths.size());
std::atomic_uint64_t counter;
std::atomic_uint64_t counter = 0;
auto doPath = [&](const Path & storePathS) {
checkInterrupt();