From 9c88385ba4b369c440a467d19fa656389f9212e5 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 7 Jul 2009 18:15:17 -0700 Subject: Fixed a logic bug in non-merging cases. --- upb_msg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/upb_msg.c b/upb_msg.c index a618f2d..47a8662 100644 --- a/upb_msg.c +++ b/upb_msg.c @@ -336,6 +336,7 @@ void upb_msg_parse_reset(struct upb_msg_parse_state *s, void *msg, s->merge = merge; s->byref = byref; if(!merge && msg == NULL) msg = upb_msgdata_new(m); + upb_msg_clear(msg, m); set_frame_data(&s->s, m, msg); s->s.tag_cb = tag_cb; s->s.value_cb = value_cb; -- cgit v1.2.3