Skip to content

Commit

Permalink
Merge pull request #243346 from emilazy/fix-nixos-option-null-derefer…
Browse files Browse the repository at this point in the history
…ence

nixos-option: fix expression position calculation
  • Loading branch information
Mic92 authored Jul 14, 2023
2 parents bec99c5 + 775f683 commit d3e30b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/tools/nix/nixos-option/nixos-option.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Out::Out(Out & o, const std::string & start, const std::string & end, LinePolicy

Value evaluateValue(Context & ctx, Value & v)
{
ctx.state.forceValue(v, v.attrs->pos);
ctx.state.forceValue(v, [&]() { return v.determinePos(nix::noPos); });
if (ctx.autoArgs.empty()) {
return v;
}
Expand Down

0 comments on commit d3e30b3

Please sign in to comment.