commit 82da8a285b4eed7436c31a2806d565c24e41d9e9
parent bdea4855d307234f96b86bf1d53515faa3ca7248
Author: sin <sin@2f30.org>
Date: Wed, 21 Mar 2018 16:17:33 +0000
Add comment
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/dedup.c b/dedup.c
@@ -298,6 +298,7 @@ extract(char *id, int fd)
if (xread(ifd, ent, sizeof(*ent)) == 0)
errx(1, "unexpected EOF");
+ /* Check if we've located the right file */
if (memcmp(ent->md, md, sizeof(ent->md)) != 0) {
free(ent);
/* Skip over index entry block table */