diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1960,7 +1960,7 @@ rb_io_getline_1(VALUE rs, long limit, VALUE io) swallow(fptr, '\n'); } } - str = io_enc_str(str, fptr); + if (!NIL_P(str)) str = io_enc_str(str, fptr); } if (!NIL_P(str)) { |