tail: allow tail -n 0 or tail -0
fix a crash, but allow this option.
This commit is contained in:
parent
d583d12300
commit
d6aff89bbb
3
tail.c
3
tail.c
|
@ -106,6 +106,9 @@ main(int argc, char *argv[])
|
|||
usage();
|
||||
} ARGEND;
|
||||
|
||||
if (!num)
|
||||
return 0;
|
||||
|
||||
if (!argc)
|
||||
tail(stdin, "<stdin>");
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user