summaryrefslogtreecommitdiff
path: root/upb_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb_msg.c')
-rw-r--r--upb_msg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/upb_msg.c b/upb_msg.c
index 89b396f..86c46de 100644
--- a/upb_msg.c
+++ b/upb_msg.c
@@ -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. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback