Removed incorrect assertion.

Internal members aren't initialized by default_msg.
pull/13171/head
Joshua Haberman 8 years ago
parent 428deb3a53
commit af43ea72b5
  1. 1
      upb/msg.c

@ -705,7 +705,6 @@ upb_msg *upb_msg_init(void *mem, const upb_msglayout *l, upb_alloc *a) {
memset(msg, 0, l->data.size);
}
UPB_ASSERT(!upb_msg_getinternal(msg)->alloc);
upb_msg_getinternal(msg)->alloc = a;
if (l->data.extendable) {

Loading…
Cancel
Save