aboutsummaryrefslogtreecommitdiffstats
path: root/src/storedPlaylist.c
diff options
context:
space:
mode:
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;
}