diff options
Diffstat (limited to '')
-rw-r--r-- | src/playlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c index 32a191bee..cf7ff9759 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1310,7 +1310,7 @@ int savePlaylist(FILE * fp, char * utf8file) { return -1; } - file = strdup(utf8ToFsCharset(utf8file)); + file = utf8ToFsCharset(utf8file); rfile = malloc(strlen(file)+strlen(".")+ strlen(PLAYLIST_FILE_SUFFIX)+1); @@ -1415,7 +1415,7 @@ static int PlaylistIterFunc(FILE * fp, char * utf8file, void (*IterFunc)(FILE *f FILE * fileP; char s[MAXPATHLEN+1]; int slength = 0; - char * temp = strdup(utf8ToFsCharset(utf8file)); + char * temp = utf8ToFsCharset(utf8file); char * rfile = malloc(strlen(temp)+strlen(".")+ strlen(PLAYLIST_FILE_SUFFIX)+1); char * actualFile; |