mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (gc_mark_children): obj->as.file.fptr may be 0 for T_FILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64ba5303fd
commit
60d0ddc942
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Nov 20 16:24:31 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* gc.c (gc_mark_children): obj->as.file.fptr may be 0 for T_FILE.
|
||||
|
||||
Tue Nov 20 15:09:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (parser_read_escape): has8bit flag may be set with control
|
||||
|
|
3
gc.c
3
gc.c
|
@ -1081,7 +1081,8 @@ gc_mark_children(VALUE ptr, int lev)
|
|||
break;
|
||||
|
||||
case T_FILE:
|
||||
gc_mark(obj->as.file.fptr->tied_io_for_writing, lev);
|
||||
if (obj->as.file.fptr)
|
||||
gc_mark(obj->as.file.fptr->tied_io_for_writing, lev);
|
||||
break;
|
||||
|
||||
case T_REGEXP:
|
||||
|
|
Loading…
Add table
Reference in a new issue