summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/tail/read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/tail/read.c b/usr.bin/tail/read.c
index 272f102..d290ed4 100644
--- a/usr.bin/tail/read.c
+++ b/usr.bin/tail/read.c
@@ -184,6 +184,7 @@ lines(FILE *fp, off_t off)
}
if (cnt) {
llines[recno].l = sp;
+ sp = NULL;
llines[recno].len = cnt;
if (++recno == off) {
wrap = 1;
OpenPOWER on IntegriCloud