Skip to content
Snippets Groups Projects
Unverified Commit 95cf23ee authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

nix verify: Fix uninitialized variable

parent c3aaf3b8
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment