From a966b13d67dfc111cf2087fde6dbab9da5df6573 Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Tue, 29 Apr 2003 17:03:22 +0000 Subject: [PATCH] Initialize tbuf in newstat_copyout() too. Reviewed by: phk --- sys/compat/linux/linux_stats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 969dcb600051..ad8d8d925baa 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -56,6 +56,7 @@ newstat_copyout(struct stat *buf, void *ubuf) struct cdevsw *cdevsw; dev_t dev; + bzero(&tbuf, sizeof(tbuf)); tbuf.st_dev = uminor(buf->st_dev) | (umajor(buf->st_dev) << 8); tbuf.st_ino = buf->st_ino; tbuf.st_mode = buf->st_mode;