Source code is for (i = 0; mode[i] && i < sizeof(mode) - 1; ++i) { Suggest new code for (i = 0; i < sizeof(mode) - 1 && mode[i]; ++i) {
I think the previous condition was correct anyway because of the extra -1 in the i check but it really makes more sense to have the i check first Thanks for the report.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.