Changing calls to strdup to xstrdup.

git-svn-id: https://svn.musicpd.org/mpd/trunk@6270 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2007-05-26 15:04:54 +00:00
parent d14a655901
commit 425c6e9502

View File

@ -100,7 +100,7 @@ static ListNode *nodeOfStoredPlaylist(StoredPlaylist *sp, int index)
static void appendSongToStoredPlaylist(StoredPlaylist *sp, Song *song) 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) 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; sp->fd = fd;
if (filename) if (filename)
sp->fspath = strdup(filename); sp->fspath = xstrdup(filename);
return sp; return sp;
} }