aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-14 02:08:22 +0000
committerEric Wong <normalperson@yhbt.net>2007-01-14 02:08:22 +0000
commiteb2a02dc2bd0c23a887b762d660820f66740443c (patch)
tree6beb750c9d142d581ff247978dcbe85d3dbe2f13 /src
parent8a1b85c1a546418c95f12ad2bd6427c5244fdfbb (diff)
downloadmpd-eb2a02dc2bd0c23a887b762d660820f66740443c.tar.gz
mpd-eb2a02dc2bd0c23a887b762d660820f66740443c.tar.xz
mpd-eb2a02dc2bd0c23a887b762d660820f66740443c.zip
jack: strdup => xstrdup for error checking
git-svn-id: https://svn.musicpd.org/mpd/trunk@5249 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/audioOutputs/audioOutput_jack.c8
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);
}