1
0
Fork 0
mirror of synced 2024-06-15 08:54:47 +12:00

Fix using empty hash

This commit is contained in:
Rafał Mikrut 2020-12-27 14:24:09 +01:00
parent e7aeebf701
commit b7562701bd

View file

@ -418,6 +418,7 @@ impl SimilarImages {
let hash = hasher.hash_image(&image);
let mut buf = [0u8; 8];
buf.copy_from_slice(&hash.as_bytes());
file_entry.hash = buf;
Some(Some((file_entry, buf)))
})