diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-14 23:02:23 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-14 23:02:23 +0900 |
commit | 0bf829c17b92c608bc374f03a63b89a940d61955 (patch) | |
tree | b2c2f63979ce9da65eb9b3f11f8dba36d38545cb /transcode.c | |
parent | 36f2d9bac2c0e6dacc0488448c05dfde6ef2b23a (diff) | |
download | ruby-0bf829c17b92c608bc374f03a63b89a940d61955.tar.gz |
transcode.c (rb_trans_conv): remove unnecessary assignments
This change will suppress Coverity Scan warnings
Diffstat (limited to 'transcode.c')
-rw-r--r-- | transcode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/transcode.c b/transcode.c index 5f9e4e9600..0f72a2d735 100644 --- a/transcode.c +++ b/transcode.c @@ -1194,7 +1194,6 @@ rb_trans_conv(rb_econv_t *ec, if (ec->elems[0].last_result == econv_after_output) ec->elems[0].last_result = econv_source_buffer_empty; - needreport_index = -1; for (i = ec->num_trans-1; 0 <= i; i--) { switch (ec->elems[i].last_result) { case econv_invalid_byte_sequence: @@ -1203,7 +1202,6 @@ rb_trans_conv(rb_econv_t *ec, case econv_after_output: case econv_finished: sweep_start = i+1; - needreport_index = i; goto found_needreport; case econv_destination_buffer_full: |