1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-30 03:56:13 +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

@ -109,6 +109,7 @@ 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]);