DatabaseProtobufAdapter: init top-level type bridge
Found by Coverity Scan, CID 25724. Change-Id: I30ab9251bd0b6c60a64075a5cf934f40874a7c6c
This commit is contained in:
@ -19,6 +19,8 @@ DatabaseProtobufAdapter::TypeBridge::TypeBridge(const FieldDescriptor *desc)
|
||||
if (desc) { // top-level type bridge has no desc pointer
|
||||
const FieldOptions& field_options = desc->options();
|
||||
this->primary_key = field_options.GetExtension(sql_primary_key);
|
||||
} else { // initialize top-level type bridge, too
|
||||
primary_key = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user