aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/tail.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/tail.c')
-rw-r--r--toys/posix/tail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/posix/tail.c b/toys/posix/tail.c
index aba53180..e92c0446 100644
--- a/toys/posix/tail.c
+++ b/toys/posix/tail.c
@@ -164,6 +164,7 @@ static void do_tail(int fd, char *name)
}
list->data += bytes;
list->len -= bytes;
+ bytes = 0;
}
} else {
int len = new->len, count;