diff --git a/io.c b/io.c index de5e6cf136..ad0cb3f7a5 100644 --- a/io.c +++ b/io.c @@ -4456,7 +4456,7 @@ io_set_encoding(VALUE io, VALUE opt) static VALUE rb_open_file(int argc, VALUE *argv, VALUE io) { - VALUE opt, fname, vmode, perm; + VALUE opt=Qnil, fname, vmode, perm; const char *mode; int flags; unsigned int fmode;