!1006 Fix : statfs函数内部判断错误

Merge pull request !1006 from yinjiaming/fix
This commit is contained in:
openharmony_ci 2023-01-11 07:37:51 +00:00 committed by Gitee
commit c119b7e9e2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -742,7 +742,7 @@ int statfs(const char *path, struct statfs *buf)
return MapToPosixRet(ret);
}
if (mp->mFs->fsFops->stat != NULL) {
if (mp->mFs->fsMops->statfs != NULL) {
ret = mp->mFs->fsMops->statfs(pathInMp, buf);
} else {
VFS_ERRNO_SET(ENOTSUP);