зеркало из https://github.com/github/ruby.git
* io.c (rb_open_file): initialize flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
67dcad92b7
Коммит
2aba26fa52
|
@ -1,4 +1,6 @@
|
|||
Mon Jun 23 13:45:30 2003 Tanaka Akira <akr@m17n.org>
|
||||
Mon Jun 23 16:18:12 2003 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* io.c (rb_open_file): initialize flags.
|
||||
|
||||
* time.c (time_arg): initialize v[6] even when argc is 10 to
|
||||
avoid valgrind error.
|
||||
|
|
2
io.c
2
io.c
|
@ -2236,7 +2236,7 @@ rb_open_file(argc, argv, io)
|
|||
}
|
||||
else {
|
||||
SafeStringValue(vmode);
|
||||
rb_io_mode_modenum(RSTRING(vmode)->ptr);
|
||||
flags = rb_io_mode_modenum(RSTRING(vmode)->ptr);
|
||||
}
|
||||
fmode = NIL_P(perm) ? 0666 : NUM2INT(perm);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче