From: Eric S. Raymond Date: Sun, 14 Sep 2003 23:03:43 +0000 (+0000) Subject: Avoid enmitting spurious chunks when all lines normalized to nothing. X-Git-Tag: 1.6~13 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=f8bc3f75aaff16d6698604f816c0f7818bd9b8d1;p=comparator.git Avoid enmitting spurious chunks when all lines normalized to nothing. --- 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);