Skip to content

Commit

Permalink
Fix using empty hash (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin authored Dec 27, 2020
1 parent e7aeebf commit 33545df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions czkawka_core/src/similar_images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
})
Expand Down

0 comments on commit 33545df

Please sign in to comment.