aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-06-19 03:31:47 +0000
committerGerrit Code Review <gerrit@localhost>2024-06-19 03:31:47 +0000
commit85f282ef572577899b3d80ba8def1b920a386218 (patch)
tree389fc1a579823554a96341ae5b078efb798849a5 /src/libexpr/eval.cc
parentb338435b751c95da14e19db9187e67ac26f09e97 (diff)
parentc897fba787c0a0c829f384717ffdc152365a07b2 (diff)
Merge changes Id0e651e4,I0ed20da8,I76bd6d22,I5d8ffb7b into main
* changes: store: fix null reference from DerivationGoal::waiteeDone libmain: fix UB in verbosity assignment build: make UBSan work :) libexpr: fix accessing uninitialized values and fix pure-eval docs
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 8d6cdaad7..9bd27e22d 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -418,7 +418,7 @@ EvalState::EvalState(
}
if (evalSettings.restrictEval || evalSettings.pureEval) {
- allowedPaths = PathSet();
+ allowedPaths = std::optional(PathSet());
for (auto & i : searchPath.elements) {
auto r = resolveSearchPathPath(i.path);