dedup

data deduplication program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | README | LICENSE

commit f2671211f99e5dba4d6e3f26cace0984c4826557
parent b39264fb67a7cada839dd0ad7af6fe6fc79e0fcb
Author: sin <sin@2f30.org>
Date:   Mon, 18 Feb 2019 08:33:04 +0000

Simplify check

Diffstat:
Mdedup.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dedup.c b/dedup.c @@ -454,7 +454,7 @@ dedup(int fd, char *msg) /* Calculate hash and add this entry to the index */ SHA256_Final(ent->md, &ctx); - if (msg != NULL && msg[0] != '\0') { + if (msg != NULL) { size_t size; size = strlen(msg) + 1;