Mercurial > audlegacy
comparison src/audacious/main.c @ 4807:859ef55f062c
Don't crash on an invalid interface.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 16 Oct 2008 12:59:14 -0500 |
parents | 20f868cd576b |
children | 323b3d9c9b19 |
comparison
equal
deleted
inserted
replaced
4806:563b6f48acd9 | 4807:859ef55f062c |
---|---|
610 ui_populate_headless_interface(); | 610 ui_populate_headless_interface(); |
611 | 611 |
612 g_message("Selecting interface %s", options.interface); | 612 g_message("Selecting interface %s", options.interface); |
613 i = interface_get(options.interface); | 613 i = interface_get(options.interface); |
614 | 614 |
615 g_message("Running interface %s@%p", options.interface, i); | 615 if (i != NULL) |
616 interface_run(i); | 616 { |
617 g_message("Running interface %s@%p", options.interface, i); | |
618 interface_run(i); | |
619 } | |
620 else | |
621 g_print("%s: unable to launch selected interface %s\n", argv[0], options.interface); | |
617 | 622 |
618 aud_quit(); | 623 aud_quit(); |
619 return EXIT_SUCCESS; | 624 return EXIT_SUCCESS; |
620 } | 625 } |