1
0
Fork 0
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:
Eelco Dolstra 2016-07-21 18:35:12 +02:00
parent e682a8e138
commit ea8e8df6c7
2 changed files with 3 additions and 2 deletions

View file

@ -121,6 +121,7 @@ const string base32Chars = "0123456789abcdfghijklmnpqrsvwxyz";
string printHash32(const Hash & hash)
{
assert(hash.type != htUnknown);
size_t len = hash.base32Len();
assert(len);