diff options
author | Yusuke Endoh <[email protected]> | 2019-07-15 00:19:41 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2019-07-15 00:20:32 +0900 |
commit | deb5e582308950cdceb510807f498a7733dc076f (patch) | |
tree | 65ae5cf48f2c6ba9cb17229b1f680f38372af88d /ext | |
parent | e6f188ea031db9bd7ac0d2931242eebc83b5aac7 (diff) |
ext/stringio/stringio.c (strio_read): "binray" is always zero here
Remove unused conditional expression to suppress Coverity Scan warnings.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/stringio/stringio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index bfe1700c5a..b02fb113ba 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1409,7 +1409,7 @@ strio_read(int argc, VALUE *argv, VALUE self) case 0: len = RSTRING_LEN(ptr->string); if (len <= ptr->pos) { - rb_encoding *enc = binary ? rb_ascii8bit_encoding() : get_enc(ptr); + rb_encoding *enc = get_enc(ptr); if (NIL_P(str)) { str = rb_str_new(0, 0); } |