aboutsummaryrefslogtreecommitdiff
path: root/scripts/mkflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mkflags.c')
-rw-r--r--scripts/mkflags.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/mkflags.c b/scripts/mkflags.c
index 748e93d3..001007ef 100644
--- a/scripts/mkflags.c
+++ b/scripts/mkflags.c
@@ -117,7 +117,13 @@ int main(int argc, char *argv[])
flist->lopt = flist->lopt->next;
} else sprintf(out, "#define FLAG_%s 0\n", aflist->lopt->command);
aflist->lopt = aflist->lopt->next;
- if (!aflist->command) aflist = aflist->next;
+ if (!aflist->command) {
+ aflist = aflist->next;
+ if (flist) {
+ flist = flist->next;
+ bit++;
+ }
+ }
} else if (aflist->command) {
if (flist && (!aflist->command || *aflist->command == *flist->command))
{