Merge pull request #8019 from edolstra/fix-read-from-stdin

Fix another uninitialized variable
This commit is contained in:
Eelco Dolstra 2023-03-09 16:04:32 +01:00 committed by GitHub
commit c44750982d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1023,7 +1023,7 @@ static int main_nix_store(int argc, char * * argv)
{
Strings opFlags, opArgs;
Operation op = 0;
bool readFromStdIn;
bool readFromStdIn = false;
parseCmdLine(argc, argv, [&](Strings::iterator & arg, const Strings::iterator & end) {
Operation oldOp = op;