about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-05T16·46+0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-05T16·46+0100
commit2175eee9fec07dea32e07471946d26a242a07760 (patch)
tree517519c0c8d031b1a2e37d99c62a7a573975b282 /src
parent84722d67d2b09b5c28e1c2d9dd438ba592df2296 (diff)
Fix segfault using non-binary cache stores as substituters
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index d4b93b5104c1..5540d57a8670 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -3670,7 +3670,7 @@ void SubstitutionGoal::tryNext()
     /* Update the total expected download size. */
     auto narInfo = std::dynamic_pointer_cast<const NarInfo>(info);
 
-    maintainExpectedNar = std::make_unique<MaintainCount<uint64_t>>(worker.expectedNarSize, narInfo->narSize);
+    maintainExpectedNar = std::make_unique<MaintainCount<uint64_t>>(worker.expectedNarSize, info->narSize);
 
     maintainExpectedDownload =
         narInfo && narInfo->fileSize