In dup don't list empty files.

This commit is contained in:
Andrea Mazzoleni 2013-06-04 23:24:50 +02:00
parent fd5c8ca2e4
commit 813c105da9
2 changed files with 6 additions and 1 deletions

View file

@ -11,6 +11,7 @@ SnapRAID HISTORY
* In Windows applies filters in case insensitive way.
* The Windows binaries are now built with gcc 4.7.2.
* Reduced memory occupation for hardlinks and directories.
* In 'dup' don't list file with 0 size.
3.0 2013/3
==========

6
dup.c
View file

@ -110,7 +110,11 @@ void state_dup(struct snapraid_state* state)
/* if no hash, skip it */
if (!hash)
continue;
/* if empty, skip it */
if (!file->size == 0)
continue;
hash32 = hash_hash(hash);
struct snapraid_hash* dup = tommy_hashdyn_search(&hashset, hash_compare, hash->hash, hash32);