jack: initialize output_ports if not configured

Don't leave uninitialized bytes in the jack_data struct.
This commit is contained in:
Max Kellermann 2009-01-29 23:16:30 +01:00
parent e959c8e084
commit 846f126259
1 changed files with 3 additions and 0 deletions

View File

@ -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 =