Stop a segmentation error if a bsackend has no help routine

This commit is contained in:
Mike Brady
2019-02-05 10:23:24 +00:00
parent 3162977c71
commit 1ae7856dd2
+6 -2
View File
@@ -112,8 +112,12 @@ void audio_ls_outputs(void) {
for (out = outputs; *out; out++) {
printf("\n");
printf("Options for output %s:\n", (*out)->name);
(*out)->help();
if ((*out)->help) {
printf("Options for output %s:\n", (*out)->name);
(*out)->help();
} else {
printf("No options for output %s:\n", (*out)->name);
}
}
}