diff --git a/interfaces/kits/js/src/mod_fs/properties/lstat_core.cpp b/interfaces/kits/js/src/mod_fs/properties/lstat_core.cpp index cef683a91b59f9598e8505add9c68238351632fe..b159c727e1c1362202dd17669b560514485fe42d 100644 --- a/interfaces/kits/js/src/mod_fs/properties/lstat_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/lstat_core.cpp @@ -35,6 +35,7 @@ FsResult LstatCore::DoLstat(const string &path) HILOGE("Failed to request heap memory."); return FsResult::Error(ENOMEM); } + int ret = uv_fs_lstat(nullptr, lstat_req.get(), path.c_str(), nullptr); if (ret < 0) { HILOGE("Failed to get stat of file, ret: %{public}d", ret);