1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-23 01:41:53 +02:00

eeshow/main.c (main): gtk_init removes --, so only call it if we have none

This commit is contained in:
Werner Almesberger 2016-08-05 21:14:26 -03:00
parent f4944a5da9
commit e949130daf

View File

@ -98,14 +98,15 @@ int main(int argc, char **argv)
char **gfx_argv;
const struct gfx_ops **ops = ops_list;
gtk_init(&argc, &argv);
for (dashdash = 1; dashdash != argc; dashdash++)
if (!strcmp(argv[dashdash], "--")) {
have_dashdash = 1;
break;
}
if (!have_dashdash)
gtk_init(&argc, &argv);
while ((c = getopt(dashdash, argv, "rvC:H:")) != EOF)
switch (c) {
case 'r':