From f96ffb5acb872d29bc65d3fbcfd199f6aee5b67c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 10 Oct 1995 10:03:48 +0000 Subject: [PATCH] Another program depending on zero'ed malloc. Submitted by: Kai Vorma --- usr.bin/tail/read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/tail/read.c b/usr.bin/tail/read.c index dc570a3d365e..ad29dbd91763 100644 --- a/usr.bin/tail/read.c +++ b/usr.bin/tail/read.c @@ -142,7 +142,7 @@ lines(fp, off) if ((lines = malloc(off * sizeof(*lines))) == NULL) err(1, "%s", strerror(errno)); - + bzero(lines, off * sizeof(*lines)); sp = NULL; blen = cnt = recno = wrap = 0;