From 2287cc64867e76018cb8e88592c618d6de228ed6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 Mar 2020 13:31:55 +0200 Subject: Fix segfault --- src/libstore/fetchers/tarball.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/fetchers/tarball.cc b/src/libstore/fetchers/tarball.cc index 2beb7876d..55244b30e 100644 --- a/src/libstore/fetchers/tarball.cc +++ b/src/libstore/fetchers/tarball.cc @@ -207,7 +207,7 @@ struct TarballInput : Input Attrs attrs; attrs.emplace("url", url.to_string()); if (narHash) - attrs.emplace("narHash", hash->to_string(SRI)); + attrs.emplace("narHash", narHash->to_string(SRI)); else if (hash) attrs.emplace("hash", hash->to_string(SRI)); return attrs; -- cgit v1.2.3