mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (rb_io_synchronized): should check if initialized.
[ruby-dev:32585] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7bb3ea6afa
commit
c3b5279d49
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Dec 14 02:05:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* io.c (rb_io_synchronized): should check if initialized.
|
||||||
|
[ruby-dev:32585]
|
||||||
|
|
||||||
Fri Dec 14 00:54:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Dec 14 00:54:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* re.c (rb_reg_initialize): embedded string may override encoding
|
* re.c (rb_reg_initialize): embedded string may override encoding
|
||||||
|
|
1
io.c
1
io.c
|
@ -3301,6 +3301,7 @@ pipe_finalize(rb_io_t *fptr, int noraise)
|
||||||
void
|
void
|
||||||
rb_io_synchronized(rb_io_t *fptr)
|
rb_io_synchronized(rb_io_t *fptr)
|
||||||
{
|
{
|
||||||
|
rb_io_check_initialized(fptr);
|
||||||
fptr->mode |= FMODE_SYNC;
|
fptr->mode |= FMODE_SYNC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue