summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/statfix64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/statfix64.c')
-rw-r--r--libc/sysdeps/linux/common/statfix64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/statfix64.c b/libc/sysdeps/linux/common/statfix64.c
index 00dafc562..540f350ca 100644
--- a/libc/sysdeps/linux/common/statfix64.c
+++ b/libc/sysdeps/linux/common/statfix64.c
@@ -31,6 +31,7 @@
/* Convert from the kernel's version of struct stat to libc's version */
void statfix64(struct libc_stat64 *libcstat, struct kernel_stat64 *kstat)
{
+ memset(libcstat, 0, sizeof(struct libc_stat64));
libcstat->st_dev = kstat->st_dev;
libcstat->st_ino = kstat->st_ino;
libcstat->st_mode = kstat->st_mode;