Initialize tbuf in newstat_copyout() too.

Reviewed by:	phk
This commit is contained in:
Martin Blapp 2003-04-29 17:03:22 +00:00
parent bde5d00495
commit a966b13d67

View File

@ -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;