about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-21T16·39+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-21T16·39+0200
commitd3cd0f585619d35f5daad3441258edd15ebc3f64 (patch)
treea78097ef735e36e58518a4e4f146b455c6e28fc7
parente19c90fc6b319cb3bb6fbb9a88524dcc7bcbd0aa (diff)
Fix assertion failure
-rw-r--r--src/libutil/hash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc
index 5352483ff93b..81aced0fde16 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);