tail: Initialize the stat buffer used when input is stdin

PR:		266284
Reported by:	Jenkins via delphij
Fixes:		7e11889959 ("tail: Fix -f with stdin")

(cherry picked from commit e599810ded)
This commit is contained in:
Mark Johnston 2022-09-08 16:21:39 -04:00
parent 15d30ce3fa
commit d223449d6b

View file

@ -263,6 +263,7 @@ main(int argc, char *argv[])
} else if (fflag) {
file.file_name = fn;
file.fp = stdin;
file.st = sb;
follow(&file, style, off);
} else {
forward(stdin, fn, style, off, &sb);