dedup

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

commit 5bebcbec44537372fcd4e178fdc4057d6d04f783
parent 2133dd9a0b1eb34bb850d868da0f4c209aa8cc53
Author: sin <sin@2f30.org>
Date:   Tue, 20 Mar 2018 18:19:16 +0000

Fix uninitialized memory

Bug found by Evil_Bob, thanks!

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

diff --git a/dedup.c b/dedup.c @@ -108,7 +108,7 @@ alloc_ent(void) { struct ent *ent; - ent = malloc(sizeof(*ent)); + ent = calloc(1, sizeof(*ent)); if (ent == NULL) err(1, "malloc"); return ent;