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:
Oskar Hubert Weber
2024-12-23 16:49:23 +00:00
committed by Compute-Runtime-Automation
parent 95b3d16d76
commit 435b6f8e28
2 changed files with 5 additions and 16 deletions

View File

@@ -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);
}