mflag: list: don't clobber f when flags and -i is used

This commit is contained in:
Leah Neukirchen 2020-04-30 23:27:39 +02:00
parent d83860c34e
commit e4e15bb4f0

10
mlist.c
View File

@ -72,14 +72,12 @@ list(char *prefix, char *file)
return; return;
icount++; icount++;
tcount++; tcount++;
f += 3; char *g;
while (*f) { for (g = f + 3; *g; g++)
if (flags[(unsigned int)*f] == -1) if (flags[(unsigned int)*g] == -1)
return; return;
if (flags[(unsigned int)*f] == 1) else if (flags[(unsigned int)*g] == 1)
sum++; sum++;
f++;
}
if (sum != flagsum) if (sum != flagsum)
return; return;
} }