Commit 846f1262 authored by Max Kellermann's avatar Max Kellermann

jack: initialize output_ports if not configured

Don't leave uninitialized bytes in the jack_data struct.
parent e959c8e0
......@@ -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 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment