From 1ac8c0269a97853e762fb40a5105e4e99b9dc1e4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Oct 2019 13:14:39 +0200 Subject: SourceExprCommand::getSourceExpr(): Allocate more space Fixes #3140. (cherry picked from commit 389a2cebed7cd72bda524ece0a56af2888cd80b6) --- src/nix/installables.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nix/installables.cc b/src/nix/installables.cc index 52f9778fc6d3..0e8bba39de20 100644 --- a/src/nix/installables.cc +++ b/src/nix/installables.cc @@ -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); -- cgit 1.4.1