diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-03-08 13:53:20 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-03-08 13:53:20 +0100 |
commit | 1607ad5076186bbfbf85a55d222aed09e66dc3fe (patch) | |
tree | 49f7a0545af6e252bf44a37fc4646156e74c9579 /src/libcmd/command.hh | |
parent | df4804078655250715e3ccd838ec085f34d2f64c (diff) |
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.
Diffstat (limited to 'src/libcmd/command.hh')
-rw-r--r-- | src/libcmd/command.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/command.hh b/src/libcmd/command.hh index b8116b151..0d84c8395 100644 --- a/src/libcmd/command.hh +++ b/src/libcmd/command.hh @@ -128,7 +128,7 @@ struct InstallablesCommand : virtual Args, SourceExprCommand virtual bool useDefaultInstallables() { return true; } - bool readFromStdIn; + bool readFromStdIn = false; std::vector<std::string> getFlakesForCompletion() override; |