diff options
author | mbr <mbr@FreeBSD.org> | 2003-04-29 17:03:22 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-04-29 17:03:22 +0000 |
commit | 4567946ab2808e11605aef6550524f01d848c32a (patch) | |
tree | fb58df9a143b3c99007397a3a25d25d5a67ea9c6 /sys/compat | |
parent | 2e5eff927e9080e19ab5d1d3bb506a89915e55c8 (diff) | |
download | FreeBSD-src-4567946ab2808e11605aef6550524f01d848c32a.zip FreeBSD-src-4567946ab2808e11605aef6550524f01d848c32a.tar.gz |
Initialize tbuf in newstat_copyout() too.
Reviewed by: phk
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_stats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 969dcb6..ad8d8d9 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; |