Fix -Wmissing-field-initializers warning

pull/7882/head
Keith Smiley 5 years ago committed by Adam Cozzette
parent 0110ff5659
commit 8f2ae3a0fc
  1. 2
      src/google/protobuf/descriptor_database.cc

@ -628,7 +628,7 @@ bool EncodedDescriptorDatabase::DescriptorIndex::AddFile(const FileProto& file,
Value value) {
// We push `value` into the array first. This is important because the AddXXX
// functions below will expect it to be there.
all_values_.push_back({value.first, value.second});
all_values_.push_back({value.first, value.second, nullptr});
if (!ValidateSymbolName(file.package())) {
GOOGLE_LOG(ERROR) << "Invalid package name: " << file.package();

Loading…
Cancel
Save