Remove meaningless comma expression
Coverity Scan alerts `for(i, j=0;...)` as a misuse of comma expression.
This commit is contained in:
parent
56576b6cce
commit
c0454abdee
Notes:
git
2024-12-04 05:00:15 +00:00
@ -579,7 +579,7 @@ flatten_rest_args(rb_execution_context_t * const ec, struct args_info *args, VAL
|
||||
args->argc += rest_len;
|
||||
if (rest_len) {
|
||||
CHECK_VM_STACK_OVERFLOW(ec->cfp, rest_len+1);
|
||||
for (i, j=0; rest_len > 0; rest_len--, i++, j++) {
|
||||
for (j=0; rest_len > 0; rest_len--, i++, j++) {
|
||||
locals[i] = argv[j];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user