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 4b499bc6e6..6ff3abd5d0 100644
--- a/io.c
+++ b/io.c
@@ -5627,7 +5627,7 @@ io_encoding_set(rb_io_t *fptr, int argc, VALUE v1, VALUE v2)
fptr->enc = rb_to_encoding(v2);
}
else if (argc == 1) {
- if if (NIL_P(v1)) {
+ if (NIL_P(v1)) {
fptr->enc = 0;
}
else {