ao_openal: fix crash when no device parameter is passed

This commit is contained in:
wm4 2012-04-25 02:20:37 +02:00
parent 6bee9a8158
commit 1324eaece0
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ static int init(int rate, int channels, int format, int flags) {
print_help();
return 0;
}
if (strcmp(device, "help") == 0) {
if (device && strcmp(device, "help") == 0) {
list_devices();
goto err_out;
}