aboutsummaryrefslogtreecommitdiff
path: root/ruby/ext/google/protobuf_c/upb.c
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-07-20 22:07:36 -0700
committerJosh Haberman <jhaberman@gmail.com>2016-07-21 11:37:54 -0700
commitff7f68ae9fcf4f4e3bdef3c8c372c7ae91b7720b (patch)
treee63582ff6cb9457f0b3156b8c03f226a42eab45d /ruby/ext/google/protobuf_c/upb.c
parent30d8416c1cf69c7e349811b38a91dbc810fc66bd (diff)
downloadprotobuf-ff7f68ae9fcf4f4e3bdef3c8c372c7ae91b7720b.tar.gz
protobuf-ff7f68ae9fcf4f4e3bdef3c8c372c7ae91b7720b.tar.bz2
protobuf-ff7f68ae9fcf4f4e3bdef3c8c372c7ae91b7720b.zip
Ruby: encode and freeze strings when the are assigned or decoded.
Diffstat (limited to 'ruby/ext/google/protobuf_c/upb.c')
-rw-r--r--ruby/ext/google/protobuf_c/upb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/ext/google/protobuf_c/upb.c b/ruby/ext/google/protobuf_c/upb.c
index 74a2a1db..976a3934 100644
--- a/ruby/ext/google/protobuf_c/upb.c
+++ b/ruby/ext/google/protobuf_c/upb.c
@@ -11076,8 +11076,8 @@ static bool end_stringval(upb_json_parser *p) {
case UPB_TYPE_STRING: {
upb_selector_t sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR);
- upb_sink_endstr(&p->top->sink, sel);
p->top--;
+ upb_sink_endstr(&p->top->sink, sel);
break;
}