diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 4219801..8420f3a 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -354,6 +354,8 @@ FILINFO finfo; int ret; + memset(&finfo, 0, sizeof(FILINFO)); + ret = f_stat(&priv->fat, filename, &finfo); if (ret) return ret;