Fix segfault
This commit is contained in:
parent
4989c04dd2
commit
2287cc6486
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue