Revision 05175535

b/vl.c
1575 1575
                } else if (strstart(opts, "off", &nextopt)) {
1576 1576
                    no_frame = 1;
1577 1577
                } else {
1578
                    goto invalid_display;
1578
                    goto invalid_sdl_args;
1579 1579
                }
1580 1580
            } else if (strstart(opts, ",alt_grab=", &nextopt)) {
1581 1581
                opts = nextopt;
......
1584 1584
                } else if (strstart(opts, "off", &nextopt)) {
1585 1585
                    alt_grab = 0;
1586 1586
                } else {
1587
                    goto invalid_display;
1587
                    goto invalid_sdl_args;
1588 1588
                }
1589 1589
            } else if (strstart(opts, ",ctrl_grab=", &nextopt)) {
1590 1590
                opts = nextopt;
......
1593 1593
                } else if (strstart(opts, "off", &nextopt)) {
1594 1594
                    ctrl_grab = 0;
1595 1595
                } else {
1596
                    goto invalid_display;
1596
                    goto invalid_sdl_args;
1597 1597
                }
1598 1598
            } else if (strstart(opts, ",window_close=", &nextopt)) {
1599 1599
                opts = nextopt;
......
1602 1602
                } else if (strstart(opts, "off", &nextopt)) {
1603 1603
                    no_quit = 1;
1604 1604
                } else {
1605
                    goto invalid_display;
1605
                    goto invalid_sdl_args;
1606 1606
                }
1607 1607
            } else {
1608
                goto invalid_display;
1608
            invalid_sdl_args:
1609
                fprintf(stderr, "Invalid SDL option string: %s\n", p);
1610
                exit(1);
1609 1611
            }
1610 1612
            opts = nextopt;
1611 1613
        }
......
1642 1644
    } else if (strstart(p, "none", &opts)) {
1643 1645
        display = DT_NONE;
1644 1646
    } else {
1645
    invalid_display:
1646 1647
        fprintf(stderr, "Unknown display type: %s\n", p);
1647 1648
        exit(1);
1648 1649
    }

Also available in: Unified diff