tailk: fix error detected by testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f9782ffc45
commit
6eaeb7737d
@ -241,7 +241,8 @@ int tail_main(int argc, char **argv)
|
||||
} while (nwrite);
|
||||
}
|
||||
}
|
||||
xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite);
|
||||
if (nwrite > 0)
|
||||
xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite);
|
||||
} else if (count) {
|
||||
if (COUNT_BYTES) {
|
||||
taillen += nread;
|
||||
|
Loading…
Reference in New Issue
Block a user