Fix uninitialized readFromStdIn variable

This was causing random failures in tests/ca/substitute.ca: 'nix copy
--file ./content-addressed.nix' wouldn't get the default installable
'.' applied in InstallablesCommand::load(), so it would do nothing.
This commit is contained in:
Eelco Dolstra 2023-03-08 13:53:20 +01:00
parent df48040786
commit 1607ad5076

View file

@ -128,7 +128,7 @@ struct InstallablesCommand : virtual Args, SourceExprCommand
virtual bool useDefaultInstallables() { return true; } virtual bool useDefaultInstallables() { return true; }
bool readFromStdIn; bool readFromStdIn = false;
std::vector<std::string> getFlakesForCompletion() override; std::vector<std::string> getFlakesForCompletion() override;