]> thyrsus.com Git - comparator.git/commitdiff
Avoid enmitting spurious chunks when all lines normalized to nothing.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 14 Sep 2003 23:03:43 +0000 (23:03 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 14 Sep 2003 23:03:43 +0000 (23:03 +0000)
shredtree.c

index e74466da86c60e5b8eca1b87fba6dfd6244117d2..adb373d8b266a5d1d0018005c03adc7a39fcaefa 100644 (file)
@@ -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);