Fix segfault with single build of a command with bare longopts.

This commit is contained in:
Rob Landley 2014-02-08 10:53:26 -06:00
parent b6c8a8609f
commit 5a2583ac4f

View File

@ -111,7 +111,8 @@ int main(int argc, char *argv[])
flist->lopt = flist->lopt->next;
} else printf("#define FLAG_%s 0\n", aflist->lopt->command);
aflist->lopt = aflist->lopt->next;
} else {
if (!aflist->command) aflist = aflist->next;
} else if (aflist->command) {
if (flist && (!aflist->command || *aflist->command == *flist->command))
{
if (aflist->command)