]> wimlib.net Git - wimlib/blobdiff - src/sha1.h
dentry_first_lte() -> dentry_unnamed_lte()
[wimlib] / src / sha1.h
index a5d695d65a633d5e01428d56659b3067ea1e0f89..e153f5338335b92e31ae181b11180bd9e14379d1 100644 (file)
@@ -39,9 +39,10 @@ static inline void print_hash(const u8 hash[SHA1_HASH_SIZE])
 
 static inline bool is_zero_hash(const u8 hash[SHA1_HASH_SIZE])
 {
-       for (u8 i = 0; i < SHA1_HASH_SIZE / 4; i++)
-               if (((u32*)hash)[i])
-                       return false;
+       if (hash)
+               for (u8 i = 0; i < SHA1_HASH_SIZE / 4; i++)
+                       if (((u32*)hash)[i])
+                               return false;
        return true;
 }