USB: Fix array index 'i' is used before limits check warning.

Codacy.
This commit is contained in:
lightningterror 2022-07-15 02:39:20 +02:00
parent 6047322f0c
commit 498eb9330b
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ static int jo_processDU(jo_bits_t *bits, float A[64], const unsigned char htdc[9
for(; (endpos>0)&&(Q[endpos]==0); --endpos) { /* do nothing */ }
for(int i = 1; i <= endpos;) {
int run = 0;
while (Q[i]==0 && i<endpos) {
while (i < endpos && Q[i] == 0) {
++run;
++i;
}