From 9b40a46abeb69fc2d979c07cc7c712e488b2a519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophane=20Hufschmitt?= <7226587+thufschmitt@users.noreply.github.com> Date: Wed, 6 Mar 2024 06:56:03 +0100 Subject: [PATCH] Explicitly instantiate the progress-bar counter in copy-sigs --- src/nix/sigs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/sigs.cc b/src/nix/sigs.cc index 8d8688a75..6cdbfddca 100644 --- a/src/nix/sigs.cc +++ b/src/nix/sigs.cc @@ -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();