Commit d1b4112f authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

jack: initialize audioOutput->data

Initialize audioOutput->data with NULL in jack_initDriver(). Previously, this was never initialized, although the other functions relied on it being NULL prior to jack_openDevice(). This patch addresses bug 0001641[1]. In contrast to the patch provided by the bug reporter, it moves the initialization before the "!param" check. [1] - http://musicpd.org/mantis/view.php?id=1641 git-svn-id: https://svn.musicpd.org/mpd/trunk@7375 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 4f247ca4
...@@ -191,7 +191,9 @@ static int jack_initDriver(AudioOutput *audioOutput, ConfigParam *param) ...@@ -191,7 +191,9 @@ static int jack_initDriver(AudioOutput *audioOutput, ConfigParam *param)
BlockParam *bp; BlockParam *bp;
char *endptr; char *endptr;
int val; int val;
char *cp = NULL; char *cp = NULL;
audioOutput->data = NULL;
DEBUG("jack_initDriver (pid=%d)\n", getpid()); DEBUG("jack_initDriver (pid=%d)\n", getpid());
if ( ! param ) return 0; if ( ! param ) return 0;
......
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