Keith Smiley 5 년 전
부모
커밋
cdf5022ada
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/google/protobuf/descriptor_database.cc

+ 1 - 1
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, nullptr});
+  all_values_.push_back({value.first, value.second, {}});
 
   if (!ValidateSymbolName(file.package())) {
     GOOGLE_LOG(ERROR) << "Invalid package name: " << file.package();