mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
fix: regression
fixes regression caused by previous pr Related-To: NEO-8116 Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
95b3d16d76
commit
435b6f8e28
@@ -67,9 +67,7 @@ bool checkDefaultCacheDirSettings(std::string &cacheDir, NEO::EnvironmentVariabl
|
||||
}
|
||||
|
||||
time_t getFileModificationTime(const std::string &path) {
|
||||
struct stat st {
|
||||
0, 0
|
||||
};
|
||||
struct stat st {};
|
||||
if (NEO::SysCalls::stat(path, &st) == 0) {
|
||||
return st.st_mtime;
|
||||
}
|
||||
@@ -77,9 +75,7 @@ time_t getFileModificationTime(const std::string &path) {
|
||||
}
|
||||
|
||||
size_t getFileSize(const std::string &path) {
|
||||
struct stat st {
|
||||
0, 0
|
||||
};
|
||||
struct stat st {};
|
||||
if (NEO::SysCalls::stat(path, &st) == 0) {
|
||||
return static_cast<size_t>(st.st_size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user