Skip to content

Commit

Permalink
SourceExprCommand::getSourceExpr(): Allocate more space
Browse files Browse the repository at this point in the history
Fixes #3140.
  • Loading branch information
edolstra committed Oct 21, 2019
1 parent 37e45da commit 389a2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/installables.cc
Expand Up @@ -39,7 +39,7 @@ Value * SourceExprCommand::getSourceExpr(EvalState & state)

auto searchPath = state.getSearchPath();

state.mkAttrs(*vSourceExpr, searchPath.size() + 1);
state.mkAttrs(*vSourceExpr, 1024);

mkBool(*state.allocAttr(*vSourceExpr, sToplevel), true);

Expand Down

0 comments on commit 389a2ce

Please sign in to comment.