diff --git a/src/google/protobuf/compiler/importer.cc b/src/google/protobuf/compiler/importer.cc index 9e68da679876b..1f0c095ecfe26 100644 --- a/src/google/protobuf/compiler/importer.cc +++ b/src/google/protobuf/compiler/importer.cc @@ -466,7 +466,7 @@ io::ZeroCopyInputStream* DiskSourceTree::OpenVirtualFile( io::ZeroCopyInputStream* DiskSourceTree::OpenDiskFile( absl::string_view filename) { - struct stat sb; + struct stat sb = {0}; int ret = 0; do { ret = stat(std::string(filename).c_str(), &sb);