aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 15:04:54 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 15:04:54 +0000
commit425c6e9502da2764e0b004dd34b90acb36b38276 (patch)
treed9247daa4c96515e28fa73d71f5455c9597c9151 /src
parentd14a6559018e89d593a5576611eceda9f3b341b0 (diff)
downloadmpd-425c6e9502da2764e0b004dd34b90acb36b38276.tar.gz
mpd-425c6e9502da2764e0b004dd34b90acb36b38276.tar.xz
mpd-425c6e9502da2764e0b004dd34b90acb36b38276.zip
Changing calls to strdup to xstrdup.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6270 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/storedPlaylist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storedPlaylist.c b/src/storedPlaylist.c
index 9cdfeabf0..322cb1b5b 100644
--- a/src/storedPlaylist.c
+++ b/src/storedPlaylist.c
@@ -100,7 +100,7 @@ static ListNode *nodeOfStoredPlaylist(StoredPlaylist *sp, int index)
static void appendSongToStoredPlaylist(StoredPlaylist *sp, Song *song)
{
- insertInListWithoutKey(sp->list, strdup(getSongUrl(song)));
+ insertInListWithoutKey(sp->list, xstrdup(getSongUrl(song)));
}
StoredPlaylist *newStoredPlaylist(const char *utf8name, int fd, int ignoreExisting)
@@ -128,7 +128,7 @@ StoredPlaylist *newStoredPlaylist(const char *utf8name, int fd, int ignoreExisti
sp->fd = fd;
if (filename)
- sp->fspath = strdup(filename);
+ sp->fspath = xstrdup(filename);
return sp;
}