From 1ae7856dd27d3cab5aa6942e253e96f27a0b3de1 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Tue, 5 Feb 2019 10:23:24 +0000 Subject: [PATCH] Stop a segmentation error if a bsackend has no help routine --- audio.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/audio.c b/audio.c index 7d0f489f..a2c21287 100644 --- a/audio.c +++ b/audio.c @@ -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); + } } }