From b7895d0d1097ae28ec4a4ff4231cb530ab201462 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 3 Dec 2000 20:36:19 +0000 Subject: (tail_file): Initialize ignore, dev, and ino members, when tailing forever and the open failed. Otherwise, we could get uninitialized memory references of those fields in recheck. --- src/tail.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/tail.c b/src/tail.c index 5a65e085d..1ab9a8f3a 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1137,6 +1137,9 @@ tail_file (struct File_spec *f, off_t n_units) { f->fd = -1; f->errnum = errno; + f->ignore = 0; + f->ino = 0; + f->dev = 0; } error (0, errno, "%s", pretty_name (f)); errors = 1; -- cgit v1.2.3-54-g00ecf