Patch from William Barsse to fix a segfault when multiple files are specified.
authorGlenn L McGrath <bug1@ihug.co.nz>
Thu, 30 Sep 2004 00:24:21 +0000 (00:24 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Thu, 30 Sep 2004 00:24:21 +0000 (00:24 -0000)
coreutils/tail.c

index b18064a38c086ba8b1db5574e9b35269ebcd8670..e3f89d2eea5424c1661e02a6fb9ac54c337d3d59 100644 (file)
@@ -228,6 +228,7 @@ int tail_main(int argc, char **argv)
                buf = tailbuf;
                taillen = 0;
                seen = 1;
+               newline = 0;
 
                while ((nread = tail_read(fds[i], buf, tailbufsize-taillen)) > 0) {
                        if (from_top) {