aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-29 23:16:30 +0100
committerMax Kellermann <max@duempel.org>2009-01-29 23:16:30 +0100
commit846f1262594832e06a3e0aa36176c75f3b637358 (patch)
tree8f5c128dea63780c675edc582a51f8e16f5948a0
parente959c8e084069aa8aa453cd36e15d9aed15055be (diff)
downloadmpd-846f1262594832e06a3e0aa36176c75f3b637358.tar.gz
mpd-846f1262594832e06a3e0aa36176c75f3b637358.tar.xz
mpd-846f1262594832e06a3e0aa36176c75f3b637358.zip
jack: initialize output_ports if not configured
Don't leave uninitialized bytes in the jack_data struct.
-rw-r--r--src/output/jack_plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/output/jack_plugin.c b/src/output/jack_plugin.c
index 2e93d2ec8..1aea92d86 100644
--- a/src/output/jack_plugin.c
+++ b/src/output/jack_plugin.c
@@ -190,6 +190,9 @@ mpd_jack_init(struct audio_output *ao,
jd->output_ports[1] = ports[1];
g_free(ports);
+ } else {
+ jd->output_ports[0] = NULL;
+ jd->output_ports[1] = NULL;
}
jd->ringbuffer_size =