mirror of https://github.com/ppy/osu
Merge pull request #5503 from peppy/fix-zero-length-hash
Fix zero-length hash models incorrectly creating a unique hash
This commit is contained in:
commit
6c3b439b3b
|
@ -253,7 +253,7 @@ private string computeHash(ArchiveReader reader)
|
|||
using (Stream s = reader.GetStream(file))
|
||||
s.CopyTo(hashable);
|
||||
|
||||
return hashable.ComputeSHA2Hash();
|
||||
return hashable.Length > 0 ? hashable.ComputeSHA2Hash() : null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue