We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61bbcce commit 7d7d1afCopy full SHA for 7d7d1af
clang/unittests/Basic/FileManagerTest.cpp
@@ -28,7 +28,8 @@ class FakeStatCache : public FileSystemStatCache {
28
llvm::StringMap<struct stat, llvm::BumpPtrAllocator> StatCalls;
29
30
void InjectFileOrDirectory(const char *Path, ino_t INode, bool IsFile) {
31
- struct stat statBuf = {};
+ struct stat statBuf;
32
+ memset(&statBuf, 0, sizeof(statBuf));
33
statBuf.st_dev = 1;
34
#ifndef _WIN32 // struct stat has no st_ino field on Windows.
35
statBuf.st_ino = INode;
0 commit comments