summaryrefslogtreecommitdiff
path: root/inotail.c
diff options
context:
space:
mode:
Diffstat (limited to 'inotail.c')
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index 0c076be..53cbec1 100644
--- a/inotail.c
+++ b/inotail.c
@@ -211,12 +211,12 @@ static int watch_files(struct file_struct *f, int n_files)
if (verbose)
write_header(fil->name);
+ memset(&fbuf, 0, sizeof(fbuf));
lseek(ffd, offset, SEEK_SET);
while (read(ffd, &fbuf, block_size) != 0) {
write(STDOUT_FILENO, fbuf, block_size);
}
-
close(ffd);
}