diff options
author | Jim Meyering <jim@meyering.net> | 2000-12-03 20:36:19 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-12-03 20:36:19 +0000 |
commit | b7895d0d1097ae28ec4a4ff4231cb530ab201462 (patch) | |
tree | 1ae9a622bd51c1bf5644dd11a7dbbbaeb8600554 /src | |
parent | 84618209567bd672655ab23791313fec4d529265 (diff) | |
download | coreutils-b7895d0d1097ae28ec4a4ff4231cb530ab201462.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |