tSimplify check - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f2671211f99e5dba4d6e3f26cace0984c4826557
(DIR) parent b39264fb67a7cada839dd0ad7af6fe6fc79e0fcb
(HTM) Author: sin <sin@2f30.org>
Date: Mon, 18 Feb 2019 08:33:04 +0000
Simplify check
Diffstat:
M dedup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/dedup.c b/dedup.c
t@@ -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;