diff options
Diffstat (limited to 'libc/sysdeps/linux/common/statfix.c')
-rw-r--r-- | libc/sysdeps/linux/common/statfix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/statfix.c b/libc/sysdeps/linux/common/statfix.c index 3921deb0f..996cf1346 100644 --- a/libc/sysdeps/linux/common/statfix.c +++ b/libc/sysdeps/linux/common/statfix.c @@ -28,6 +28,7 @@ /* Convert from the kernel's version of struct stat to libc's version */ void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat) { + memset(libcstat, 0, sizeof(struct libc_stat)); libcstat->st_dev = kstat->st_dev; libcstat->st_ino = kstat->st_ino; libcstat->st_mode = kstat->st_mode; |