tFix null terminator 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 4ff76106cb1e2c6f99dfd163744224fc57d5fa65
(DIR) parent 07c41115923df14d48ec16279ed14dcb0df598e1
(HTM) Author: sin <sin@2f30.org>
Date: Sun, 17 Feb 2019 18:38:04 +0000
Fix null terminator check
Diffstat:
M dedup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/dedup.c b/dedup.c
t@@ -511,7 +511,7 @@ int
list(struct ent *ent, void *arg)
{
print_md(ent->md, sizeof(ent->md));
- if (ent->msg)
+ if (ent->msg[0] != '\0')
printf("\t%s\n", ent->msg);
else
putchar('\n');