Googletest export
cleanup: fix spurious MSAN warnings with Clang 12 PiperOrigin-RevId: 378430614
This commit is contained in:
parent
aa533abfd4
commit
c5be3930f5
@ -210,7 +210,7 @@ bool FilePath::FileOrDirectoryExists() const {
|
|||||||
delete [] unicode;
|
delete [] unicode;
|
||||||
return attributes != kInvalidFileAttributes;
|
return attributes != kInvalidFileAttributes;
|
||||||
#else
|
#else
|
||||||
posix::StatStruct file_stat;
|
posix::StatStruct file_stat{};
|
||||||
return posix::Stat(pathname_.c_str(), &file_stat) == 0;
|
return posix::Stat(pathname_.c_str(), &file_stat) == 0;
|
||||||
#endif // GTEST_OS_WINDOWS_MOBILE
|
#endif // GTEST_OS_WINDOWS_MOBILE
|
||||||
}
|
}
|
||||||
@ -237,7 +237,7 @@ bool FilePath::DirectoryExists() const {
|
|||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
posix::StatStruct file_stat;
|
posix::StatStruct file_stat{};
|
||||||
result = posix::Stat(path.c_str(), &file_stat) == 0 &&
|
result = posix::Stat(path.c_str(), &file_stat) == 0 &&
|
||||||
posix::IsDir(file_stat);
|
posix::IsDir(file_stat);
|
||||||
#endif // GTEST_OS_WINDOWS_MOBILE
|
#endif // GTEST_OS_WINDOWS_MOBILE
|
||||||
|
Loading…
Reference in New Issue
Block a user