diff options
Diffstat (limited to 'upb_msg.c')
-rw-r--r-- | upb_msg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -40,6 +40,7 @@ bool upb_msg_init(struct upb_msg *m, struct google_protobuf_DescriptorProto *d) upb_strtable_init(&m->fields_by_name, d->field->len, sizeof(struct upb_fieldsbyname_entry)); + m->descriptor = d; m->num_fields = d->field->len; m->set_flags_bytes = div_round_up(m->num_fields, 8); /* These are incremented in the loop. */ |