From 56f82397c60ce968f7d02c9bba22bc6489f7e162 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 23 Jul 2004 23:06:22 +0000 Subject: [PATCH] linux-null-out-stat-struct-20040723 FIXES 3812 we should memset this to 0. we should also only do it once for linux 2.2. code is slightly different in the cvs head. --- src/afs/LINUX/osi_vfsops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index 14c12c441..05d1e7c8c 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -374,6 +374,8 @@ afs_statfs(struct super_block *sbp, struct statfs *__statp, int size) memset(&stat, 0, size); statp = &stat; +#else + memset(statp, 0, sizeof(*statp)); #endif AFS_STATCNT(afs_statfs); -- 2.39.5