From b2a890263f4284b109b667aaa0fe341d74201aba Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 21 Jul 2009 23:28:11 -0700 Subject: Properly initialize the fqname member of upb_msg. --- src/upb_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/upb_table.c') diff --git a/src/upb_table.c b/src/upb_table.c index 584bbd6..063b0b6 100644 --- a/src/upb_table.c +++ b/src/upb_table.c @@ -82,7 +82,7 @@ static uint32_t empty_intbucket(struct upb_inttable *table) * parameterize them. */ static void intinsert(struct upb_inttable *t, struct upb_inttable_entry *e) { - assert(upb_inttable_lookup(t, e->key, t->t.entry_size) == NULL); + assert(upb_inttable_lookup(t, e->key) == NULL); t->t.count++; uint32_t bucket = upb_inttable_bucket(t, e->key); struct upb_inttable_entry *table_e = intent(t, bucket); @@ -115,7 +115,7 @@ static void intinsert(struct upb_inttable *t, struct upb_inttable_entry *e) } memcpy(table_e, e, t->t.entry_size); table_e->next = UPB_END_OF_CHAIN; - assert(upb_inttable_lookup(t, e->key, t->t.entry_size) == table_e); + assert(upb_inttable_lookup(t, e->key) == table_e); } void upb_inttable_insert(struct upb_inttable *t, struct upb_inttable_entry *e) -- cgit v1.2.3