From: Jim Meyering Date: Sun, 3 Dec 2000 20:36:19 +0000 (+0000) Subject: (tail_file): Initialize ignore, dev, and ino members, X-Git-Tag: CPPI-1_8~21 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b7895d0d1097ae28ec4a4ff4231cb530ab201462;p=thirdparty%2Fcoreutils.git (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. --- diff --git a/src/tail.c b/src/tail.c index 5a65e085d2..1ab9a8f3a6 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;