mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
NarInfo::NarInfo(): Ensure that we get a NAR size/hash
This commit is contained in:
parent
e682a8e138
commit
ea8e8df6c7
2 changed files with 3 additions and 2 deletions
|
@ -121,6 +121,7 @@ const string base32Chars = "0123456789abcdfghijklmnpqrsvwxyz";
|
|||
|
||||
string printHash32(const Hash & hash)
|
||||
{
|
||||
assert(hash.type != htUnknown);
|
||||
size_t len = hash.base32Len();
|
||||
assert(len);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue