diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 04:45:16 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-07 04:45:16 +0000 |
commit | cac2f455a9ed5df1827ebfa1ea6fd54ce41f178f (patch) | |
tree | e41a629235c1e82abc7d6ce6b30d30dbb38ccb2f /ext/json | |
parent | b309a3698de74e3cf97b5c3d9393c9d3e735f469 (diff) | |
download | ruby-cac2f455a9ed5df1827ebfa1ea6fd54ce41f178f.tar.gz |
* ext/json/fbuffer/fbuffer.h (fbuffer_append_str): change the place of
RB_GC_GUARD. it should be after the object is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
-rw-r--r-- | ext/json/fbuffer/fbuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/fbuffer/fbuffer.h b/ext/json/fbuffer/fbuffer.h index af74187566..24bb088521 100644 --- a/ext/json/fbuffer/fbuffer.h +++ b/ext/json/fbuffer/fbuffer.h @@ -117,9 +117,9 @@ static void fbuffer_append_str(FBuffer *fb, VALUE str) const char *newstr = StringValuePtr(str); unsigned long len = RSTRING_LEN(str); - RB_GC_GUARD(str); - fbuffer_append(fb, newstr, len); + + RB_GC_GUARD(str); } #endif |