about summary refs log tree commit diff
path: root/src/nix/installables.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-21T11·14+0200
committerEelco Dolstra <edolstra@gmail.com>2020-01-04T12·40+0100
commit1ac8c0269a97853e762fb40a5105e4e99b9dc1e4 (patch)
treebae9876483bc9162de3097b3e5d6e181807e18cf /src/nix/installables.cc
parentc7b4bf1c9cb830e15d517e3cb2b214ea838530b4 (diff)
SourceExprCommand::getSourceExpr(): Allocate more space
Fixes #3140.

(cherry picked from commit 389a2cebed7cd72bda524ece0a56af2888cd80b6)
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r--src/nix/installables.cc2
1 files changed, 1 insertions, 1 deletions
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);