diff --git a/src/ff.c b/src/ff.c index faac347..86cdf23 100644 --- a/src/ff.c +++ b/src/ff.c @@ -3439,6 +3439,7 @@ FRESULT f_open ( fp->obj.sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Get object allocation info */ fp->obj.objsize = ld_qword(fs->dirbuf + XDIR_FileSize); fp->obj.stat = fs->dirbuf[XDIR_GenFlags] & 2; + fp->obj.n_frag = 0; } else #endif {