]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Stop a segmentation error if a bsackend has no help routine
authorMike Brady <mikebrady@eircom.net>
Tue, 5 Feb 2019 10:23:24 +0000 (10:23 +0000)
committerMike Brady <mikebrady@eircom.net>
Tue, 5 Feb 2019 10:23:24 +0000 (10:23 +0000)
audio.c

diff --git a/audio.c b/audio.c
index 7d0f489f866468775c2b1b271ab5ed1cd96da731..a2c2128789477be7eae45356282e71ee1d4e2842 100644 (file)
--- 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);    
+    }
   }
 }