From d3cd0f585619d35f5daad3441258edd15ebc3f64 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Jul 2016 18:39:32 +0200 Subject: [PATCH] Fix assertion failure --- src/libutil/hash.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc index 5352483ff..81aced0fd 100644 --- a/src/libutil/hash.cc +++ b/src/libutil/hash.cc @@ -121,7 +121,7 @@ const string base32Chars = "0123456789abcdfghijklmnpqrsvwxyz"; string printHash32(const Hash & hash) { - assert(hash.type != htUnknown); + assert(hash.hashSize); size_t len = hash.base32Len(); assert(len);