diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-06 18:31:48 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-06 18:31:48 +0000 |
commit | e89b5bd0bfeb4dfdd8fe7e6929544cb9ceb8a505 (patch) | |
tree | e1c6be135632f7da43250eaa57216338d0bad37f /src/libstore/build.cc | |
parent | 5e59b25a232b9c11b8f8da7e539d17a71fad1bbe (diff) |
Minimize the usage of `Hash::dummy`
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 3370af63d..9effd7ec0 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -3864,8 +3864,10 @@ void DerivationGoal::registerOutputs() worker.markContentsGood(worker.store.parseStorePath(path)); } - ValidPathInfo info(worker.store.parseStorePath(path)); - info.narHash = hash.first; + ValidPathInfo info { + worker.store.parseStorePath(path), + hash.first, + }; info.narSize = hash.second; info.references = std::move(references); info.deriver = drvPath; |