mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-11 13:10:32 +00:00
mflag: list: don't clobber f when flags and -i is used
This commit is contained in:
parent
d83860c34e
commit
e4e15bb4f0
10
mlist.c
10
mlist.c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user