mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 16:52:27 +00:00
nix verify: Fix uninitialized variable
(cherry picked from commit 95cf23ee7c
)
This commit is contained in:
parent
21f48ff26a
commit
61e816217b
@ -13,7 +13,7 @@ struct CmdVerify : StorePathsCommand
|
|||||||
bool noContents = false;
|
bool noContents = false;
|
||||||
bool noTrust = false;
|
bool noTrust = false;
|
||||||
Strings substituterUris;
|
Strings substituterUris;
|
||||||
size_t sigsNeeded;
|
size_t sigsNeeded = 0;
|
||||||
|
|
||||||
CmdVerify()
|
CmdVerify()
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ struct CmdVerify : StorePathsCommand
|
|||||||
else {
|
else {
|
||||||
|
|
||||||
StringSet sigsSeen;
|
StringSet sigsSeen;
|
||||||
size_t actualSigsNeeded = sigsNeeded ? sigsNeeded : 1;
|
size_t actualSigsNeeded = std::max(sigsNeeded, (size_t) 1);
|
||||||
size_t validSigs = 0;
|
size_t validSigs = 0;
|
||||||
|
|
||||||
auto doSigs = [&](StringSet sigs) {
|
auto doSigs = [&](StringSet sigs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user