mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
string.c: fake string is not sharing
* string.c (setup_fake_str): fake string does not share another string, but just should not free. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed52fa6ef9
commit
49b3b2d8a2
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 3 14:34:07 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* string.c (setup_fake_str): fake string does not share another
|
||||
string, but just should not free.
|
||||
|
||||
Wed Dec 3 11:14:14 2014 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (w32_spawn): `v2` is used not only for `shell` but also
|
||||
|
|
2
string.c
2
string.c
|
@ -250,7 +250,7 @@ rb_fstring(VALUE str)
|
|||
static VALUE
|
||||
setup_fake_str(struct RString *fake_str, const char *name, long len, int encidx)
|
||||
{
|
||||
fake_str->basic.flags = T_STRING|RSTRING_NOEMBED|ELTS_SHARED;
|
||||
fake_str->basic.flags = T_STRING|RSTRING_NOEMBED|STR_NOFREE;
|
||||
/* SHARED to be allocated by the callback */
|
||||
|
||||
ENCODING_SET_INLINED((VALUE)fake_str, encidx);
|
||||
|
|
Loading…
Reference in a new issue