summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 625766be6a..40f9abfd21 100644
--- a/io.c
+++ b/io.c
@@ -4215,7 +4215,7 @@ rb_io_s_sysopen(int argc, VALUE *argv)
static VALUE
rb_f_open(int argc, VALUE *argv)
{
- ID to_open;
+ ID to_open = 0;
int redirect = Qfalse;
if (argc >= 1) {