Skip to content

Commit c0454ab

Browse files
committed
Remove meaningless comma expression
Coverity Scan alerts `for(i, j=0;...)` as a misuse of comma expression.
1 parent 56576b6 commit c0454ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm_args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ flatten_rest_args(rb_execution_context_t * const ec, struct args_info *args, VAL
579579
args->argc += rest_len;
580580
if (rest_len) {
581581
CHECK_VM_STACK_OVERFLOW(ec->cfp, rest_len+1);
582-
for (i, j=0; rest_len > 0; rest_len--, i++, j++) {
582+
for (j=0; rest_len > 0; rest_len--, i++, j++) {
583583
locals[i] = argv[j];
584584
}
585585
}

0 commit comments

Comments
 (0)