aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-30 13:31:55 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-03-30 13:31:55 +0200
commit2287cc64867e76018cb8e88592c618d6de228ed6 (patch)
tree84db511be02002f1e379abb594f759be275ee28b
parent4989c04dd2795bdd1bc8a6b7336a6e53179eca63 (diff)
Fix segfault
-rw-r--r--src/libstore/fetchers/tarball.cc2
1 files changed, 1 insertions, 1 deletions
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;