forked from lix-project/lix
Fix segfault
This commit is contained in:
parent
4989c04dd2
commit
2287cc6486
|
@ -207,7 +207,7 @@ struct TarballInput : Input
|
||||||
Attrs attrs;
|
Attrs attrs;
|
||||||
attrs.emplace("url", url.to_string());
|
attrs.emplace("url", url.to_string());
|
||||||
if (narHash)
|
if (narHash)
|
||||||
attrs.emplace("narHash", hash->to_string(SRI));
|
attrs.emplace("narHash", narHash->to_string(SRI));
|
||||||
else if (hash)
|
else if (hash)
|
||||||
attrs.emplace("hash", hash->to_string(SRI));
|
attrs.emplace("hash", hash->to_string(SRI));
|
||||||
return attrs;
|
return attrs;
|
||||||
|
|
Loading…
Reference in a new issue