Fix segfault

This commit is contained in:
Eelco Dolstra 2020-03-30 13:31:55 +02:00
parent 4989c04dd2
commit 2287cc6486

View file

@ -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;