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 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);