From 2aba26fa521e1a4405546b50c08de0d90b5bfd44 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 23 Jun 2003 07:19:03 +0000 Subject: [PATCH] * io.c (rb_open_file): initialize flags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 +++- io.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b931484b2c..514cc6f4cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ -Mon Jun 23 13:45:30 2003 Tanaka Akira +Mon Jun 23 16:18:12 2003 Tanaka Akira + + * io.c (rb_open_file): initialize flags. * time.c (time_arg): initialize v[6] even when argc is 10 to avoid valgrind error. diff --git a/io.c b/io.c index 662930a353..815d0dc8d4 100644 --- a/io.c +++ b/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);