mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 15:45:21 +02:00
sch2fig/main.c (main): zero optind to reset getopt
This commit is contained in:
parent
d8cef3308f
commit
97ac2297e1
@ -108,8 +108,9 @@ int main(int argc, char *const *argv)
|
|||||||
found:
|
found:
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
optind = 0; /* reset getopt */
|
||||||
|
|
||||||
sch_init(&sch_ctx, recurse);
|
sch_init(&sch_ctx, recurse);
|
||||||
sch_parse(&sch_ctx, argv[dashdash - 1]);
|
sch_parse(&sch_ctx, argv[dashdash - 1]);
|
||||||
gfx_init(*ops, gfx_argc, gfx_argv);
|
gfx_init(*ops, gfx_argc, gfx_argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user