# HG changeset patch # User William Pitcock # Date 1224179954 18000 # Node ID 859ef55f062c2d06e9d9c68c46d39e33fd8a7e7c # Parent 563b6f48acd99bb170a992143d1a1a86fbf4f7f2 Don't crash on an invalid interface. diff -r 563b6f48acd9 -r 859ef55f062c src/audacious/main.c --- a/src/audacious/main.c Sat Nov 01 20:09:43 2008 +0100 +++ b/src/audacious/main.c Thu Oct 16 12:59:14 2008 -0500 @@ -612,8 +612,13 @@ g_message("Selecting interface %s", options.interface); i = interface_get(options.interface); - g_message("Running interface %s@%p", options.interface, i); - interface_run(i); + if (i != NULL) + { + g_message("Running interface %s@%p", options.interface, i); + interface_run(i); + } + else + g_print("%s: unable to launch selected interface %s\n", argv[0], options.interface); aud_quit(); return EXIT_SUCCESS;