diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-27 18:40:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 18:40:57 +0200 |
commit | 86805a2c0a25f5ceefac0d64e64ba57ace73b7f5 (patch) | |
tree | c9b28ba4c468446911f8bc5411933a334b1fe184 /src/nix-prefetch-url/nix-prefetch-url.cc | |
parent | a5f7d310dd10fe86b6f6aa1c2771c30f113741d4 (diff) | |
parent | 43f2bd8dc5950c38a817242884870f344a84a291 (diff) |
Merge pull request #3738 from obsidiansystems/hash-always-has-type
Hash always has a valid type
Diffstat (limited to 'src/nix-prefetch-url/nix-prefetch-url.cc')
-rw-r--r-- | src/nix-prefetch-url/nix-prefetch-url.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-prefetch-url/nix-prefetch-url.cc b/src/nix-prefetch-url/nix-prefetch-url.cc index 961e7fb6d..65d8ec6b6 100644 --- a/src/nix-prefetch-url/nix-prefetch-url.cc +++ b/src/nix-prefetch-url/nix-prefetch-url.cc @@ -154,7 +154,7 @@ static int _main(int argc, char * * argv) /* If an expected hash is given, the file may already exist in the store. */ std::optional<Hash> expectedHash; - Hash hash; + Hash hash(ht); std::optional<StorePath> storePath; if (args.size() == 2) { expectedHash = Hash(args[1], ht); |