aboutsummaryrefslogtreecommitdiff
path: root/src/nix/verify.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-06-23 09:40:28 -0600
committerBen Burdette <bburdette@gmail.com>2020-06-23 09:40:28 -0600
commitabe0552504b067bb5edd95dadaf714db6d2843b6 (patch)
tree2e834a819a8be09e0e4dab712d8cfafc5ba859be /src/nix/verify.cc
parent13e87535ffa195690213ed656e2b61218c6894a3 (diff)
parent015e1c2131de938d61fa50c8df9d3987c42bcb39 (diff)
Merge remote-tracking branch 'upstream/master' into add-trace
Diffstat (limited to 'src/nix/verify.cc')
-rw-r--r--src/nix/verify.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/verify.cc b/src/nix/verify.cc
index ab83637dc..bb5e4529b 100644
--- a/src/nix/verify.cc
+++ b/src/nix/verify.cc
@@ -87,10 +87,10 @@ struct CmdVerify : StorePathsCommand
if (!noContents) {
std::unique_ptr<AbstractHashSink> hashSink;
- if (info->ca == "")
- hashSink = std::make_unique<HashSink>(info->narHash.type);
+ if (!info->ca)
+ hashSink = std::make_unique<HashSink>(*info->narHash.type);
else
- hashSink = std::make_unique<HashModuloSink>(info->narHash.type, std::string(info->path.hashPart()));
+ hashSink = std::make_unique<HashModuloSink>(*info->narHash.type, std::string(info->path.hashPart()));
store->narFromPath(info->path, *hashSink);