diff --git a/src/google/protobuf/compiler/importer.cc b/src/google/protobuf/compiler/importer.cc index 338ceb078ed7..cab8a44da7de 100644 --- a/src/google/protobuf/compiler/importer.cc +++ b/src/google/protobuf/compiler/importer.cc @@ -489,7 +489,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);