mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +02:00
nix verify: Fix uninitialized variable
This commit is contained in:
parent
c3aaf3b8da
commit
95cf23ee7c
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ struct CmdVerify : StorePathsCommand
|
|||
bool noContents = false;
|
||||
bool noTrust = false;
|
||||
Strings substituterUris;
|
||||
size_t sigsNeeded;
|
||||
size_t sigsNeeded = 0;
|
||||
|
||||
CmdVerify()
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ struct CmdVerify : StorePathsCommand
|
|||
else {
|
||||
|
||||
StringSet sigsSeen;
|
||||
size_t actualSigsNeeded = sigsNeeded ? sigsNeeded : 1;
|
||||
size_t actualSigsNeeded = std::max(sigsNeeded, (size_t) 1);
|
||||
size_t validSigs = 0;
|
||||
|
||||
auto doSigs = [&](StringSet sigs) {
|
||||
|
|
Loading…
Add table
Reference in a new issue