1
0
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:
Werner Almesberger 2016-08-01 01:33:50 -03:00
parent d8cef3308f
commit 97ac2297e1

View File

@ -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);