]> wimlib.net Git - wimlib/blobdiff - include/wimlib/sha1.h
Add ADS entry workaround
[wimlib] / include / wimlib / sha1.h
index 76e6d5e1d7082136e7614e7f6b5e5ed678868f6c..4a19a93c71d6f98e592049fd707145a9a084cff7 100644 (file)
@@ -43,9 +43,7 @@ print_hash(const u8 hash[SHA1_HASH_SIZE], FILE *out)
 static inline bool
 is_zero_hash(const u8 *hash)
 {
-       if (!hash)
-               return true;
-       return hashes_equal(hash, zero_hash);
+       return (hash == zero_hash || hashes_equal(hash, zero_hash));
 }
 
 static inline void