diff options
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/fat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 4219801bde..8420f3a097 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -354,6 +354,8 @@ static int fat_stat(struct device_d *dev, const char *filename, struct stat *s) FILINFO finfo; int ret; + memset(&finfo, 0, sizeof(FILINFO)); + ret = f_stat(&priv->fat, filename, &finfo); if (ret) return ret; |