diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-07-21T16·35+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-07-21T16·35+0200 |
commit | ea8e8df6c783fd9c0185d31ffca4e518a43fe247 (patch) | |
tree | f6216beade6d2aa4379d9e2f8dc327ea9f0846dd /src/libutil/hash.cc | |
parent | e682a8e138c44e557c57a8dcf33555ad7790dd8c (diff) |
NarInfo::NarInfo(): Ensure that we get a NAR size/hash
Diffstat (limited to 'src/libutil/hash.cc')
-rw-r--r-- | src/libutil/hash.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc index fa42587777cd..5352483ff93b 100644 --- a/src/libutil/hash.cc +++ b/src/libutil/hash.cc @@ -121,6 +121,7 @@ const string base32Chars = "0123456789abcdfghijklmnpqrsvwxyz"; string printHash32(const Hash & hash) { + assert(hash.type != htUnknown); size_t len = hash.base32Len(); assert(len); |