aboutsummaryrefslogtreecommitdiff
path: root/ruby/ext/google/protobuf_c/upb.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2016-07-25 10:09:15 -0700
committerGitHub <noreply@github.com>2016-07-25 10:09:15 -0700
commit44bd6bda58d3889c06e82c5060609182f124aba3 (patch)
treefacc0a600e9b52dc5c94d48f891c8c4a845eca67 /ruby/ext/google/protobuf_c/upb.c
parent06220303323f3cce425706540defcd7a29d42ec2 (diff)
parentd07a9963df7c01d978c0749eb5753f98a3f0dc65 (diff)
downloadprotobuf-44bd6bda58d3889c06e82c5060609182f124aba3.tar.gz
protobuf-44bd6bda58d3889c06e82c5060609182f124aba3.tar.bz2
protobuf-44bd6bda58d3889c06e82c5060609182f124aba3.zip
Merge pull request #1821 from haberman/rubyfreezestr
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;
}