aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-31 10:25:28 +0200
committerGitHub <noreply@github.com>2020-07-31 10:25:28 +0200
commit358da474d767f7714778febf49b5939ffd57760e (patch)
tree8597ef9e99a5bef4ddb421a20bae1d4ad0f6db5c /src
parent0744f7f83bfaf82395b05a2e68cc86e46a82d1f0 (diff)
parentcdc23866444b1ef863f917ec0adaaa9bec31126b (diff)
Merge pull request #3881 from matthewbauer/fix-builtins-path
Fix builtins.path
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index a98cadc80..05d499d1f 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -1199,7 +1199,7 @@ static void prim_path(EvalState & state, const Pos & pos, Value * * args, Value
string name;
Value * filterFun = nullptr;
auto method = FileIngestionMethod::Recursive;
- Hash expectedHash(htSHA256);
+ std::optional<Hash> expectedHash;
for (auto & attr : *args[0]->attrs) {
const string & n(attr.name);