From 2175eee9fec07dea32e07471946d26a242a07760 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 5 Feb 2018 17:46:43 +0100 Subject: Fix segfault using non-binary cache stores as substituters --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/build.cc') 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(info); - maintainExpectedNar = std::make_unique>(worker.expectedNarSize, narInfo->narSize); + maintainExpectedNar = std::make_unique>(worker.expectedNarSize, info->narSize); maintainExpectedDownload = narInfo && narInfo->fileSize -- cgit 1.4.1