diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/audioOutputs/audioOutput_jack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audioOutputs/audioOutput_jack.c b/src/audioOutputs/audioOutput_jack.c index 6f4607a09..46bbfa668 100644 --- a/src/audioOutputs/audioOutput_jack.c +++ b/src/audioOutputs/audioOutput_jack.c @@ -166,10 +166,10 @@ static int jack_initDriver(AudioOutput *audioOutput, ConfigParam *param) if ( ! param ) return 0; if ( (bp = getBlockParam(param, "ports")) ) { - cp = strdup(bp->value); + cp = xstrdup(bp->value); ERROR("output_ports=%s\n", cp); - output_ports[0] = strdup(strtok (cp, ",")); - output_ports[1] = strdup(strtok (NULL, ",")); + output_ports[0] = xstrdup(strtok (cp, ",")); + output_ports[1] = xstrdup(strtok (NULL, ",")); free(cp); } @@ -188,7 +188,7 @@ static int jack_initDriver(AudioOutput *audioOutput, ConfigParam *param) if ( (bp = getBlockParam(param, "name")) && (strcmp(bp->value, "mpd") != 0) ) { - name = strdup(bp->value); + name = xstrdup(bp->value); ERROR("name=%s\n", name); } |