зеркало из https://github.com/github/ruby.git
transcode.c (rb_trans_conv): remove unnecessary assignments
This change will suppress Coverity Scan warnings
This commit is contained in:
Родитель
36f2d9bac2
Коммит
0bf829c17b
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче