summaryrefslogtreecommitdiff
path: root/lib/libc/statvfs/statvfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/statvfs/statvfs.c')
-rw-r--r--lib/libc/statvfs/statvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/statvfs/statvfs.c b/lib/libc/statvfs/statvfs.c
index df8c9544..3a7c1f3e 100644
--- a/lib/libc/statvfs/statvfs.c
+++ b/lib/libc/statvfs/statvfs.c
@@ -4,7 +4,7 @@
int statvfs(const char *restrict path, struct __statvfs *restrict buf)
{
- struct statfs statfs;
+ struct statfs statfs = { 0 };
if (syscall(statfs, path, &statfs) < 0)
return -1;