upb bugfix: JSON map entry keys were passing the wrong closure.

This commit is contained in:
Josh Haberman 2016-08-29 15:28:59 -07:00
parent d4213d839f
commit 3a674ffe05

View File

@ -11175,7 +11175,7 @@ static bool parse_mapentry_key(upb_json_parser *p) {
sel = getsel_for_handlertype(p, UPB_HANDLER_STRING);
upb_sink_putstring(&subsink, sel, buf, len, NULL);
sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR);
upb_sink_endstr(&subsink, sel);
upb_sink_endstr(&p->top->sink, sel);
multipart_end(p);
break;
}