aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-12 19:00:48 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-12 19:00:48 +0200
commit2853ba4ab26c254d564aee9e75fe8f9f664b94fc (patch)
tree60b7fc473b7ae10634c659419d67df5db631c5f2
parent00fa7e2205877ec34dc3021fd73db6b6ad6bf112 (diff)
Fix build
-rw-r--r--src/libutil/hash.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc
index 3f6d4c0c9..c935f05eb 100644
--- a/src/libutil/hash.cc
+++ b/src/libutil/hash.cc
@@ -207,10 +207,10 @@ Hash::Hash(const std::string & s, HashType type)
Hash newHashAllowEmpty(std::string hashStr, HashType ht)
{
- if (hashStr.empty())
- {
+ if (hashStr.empty()) {
Hash h(ht);
- warn("found empty hash, assuming you wanted '%s'", h.to_string(SRI));
+ warn("found empty hash, assuming '%s'", h.to_string(SRI, true));
+ return h;
} else
return Hash(hashStr, ht);
}