[PATCH xserver 1/2] modesetting: Don't reuse iterator in nested loop

Daniel Stone daniel at fooishbar.org
Thu Apr 5 14:08:53 UTC 2018


On 5 April 2018 at 15:06, Walter Harms <wharms at bfs.de> wrote:
>> Daniel Stone <daniels at collabora.com> hat am 5. April 2018 um 15:58
>> geschrieben:
>> -            for (i = 0; i < xf86_config->num_output; i++) {
>> -                xf86OutputPtr output = xf86_config->output[i];
>> +            for (j = 0; i < xf86_config->num_output; j++) {
>> +                xf86OutputPtr output = xf86_config->output[j];
>
> Your intention is to loop over J but terminate with i ?
> that is at least confusing.

Today really isn't my day. Apologies.


More information about the xorg-devel mailing list