From f8bc3f75aaff16d6698604f816c0f7818bd9b8d1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 14 Sep 2003 23:03:43 +0000 Subject: [PATCH] Avoid enmitting spurious chunks when all lines normalized to nothing. --- shredtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shredtree.c b/shredtree.c index e74466d..adb373d 100644 --- a/shredtree.c +++ b/shredtree.c @@ -224,7 +224,7 @@ int shredfile(struct filehdr_t *file, display[i-1] = display[i]; display[shredsize-1].line = NULL; } - if (accepted < shredsize) + if (accepted && accepted < shredsize) hook(emit_chunk(display, linecount), file); free(display); -- 2.43.0