diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-21 23:28:11 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-21 23:28:11 -0700 |
commit | b2a890263f4284b109b667aaa0fe341d74201aba (patch) | |
tree | 15aee323d4aaf5656c6931e0661639b6217b04dc /src/upb_context.c | |
parent | c9105bbf58b7c98058ca2d2fe5dd7cd87e1554c7 (diff) |
Properly initialize the fqname member of upb_msg.
Diffstat (limited to 'src/upb_context.c')
-rw-r--r-- | src/upb_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_context.c b/src/upb_context.c index 1a36d6e..bf0e6df 100644 --- a/src/upb_context.c +++ b/src/upb_context.c @@ -190,7 +190,7 @@ static bool insert_message(struct upb_strtable *t, e.e.key = fqname; e.type = UPB_SYM_MESSAGE; e.ref.msg = malloc(sizeof(*e.ref.msg)); - if(!upb_msg_init(e.ref.msg, d, sort)) { + if(!upb_msg_init(e.ref.msg, d, fqname, sort)) { free(fqname.ptr); return false; } |