diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-03-18 03:55:41 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-03-18 03:55:41 +0000 |
commit | 6dadabea214a46d303e2c9a4d92cb0073492821e (patch) | |
tree | 9208948008dd0c6bcb7c093db0e9232567b0d68b /src | |
parent | 69635022133488e6b19569fb59b16c4658a244eb (diff) | |
download | mpd-6dadabea214a46d303e2c9a4d92cb0073492821e.tar.gz mpd-6dadabea214a46d303e2c9a4d92cb0073492821e.tar.xz mpd-6dadabea214a46d303e2c9a4d92cb0073492821e.zip |
ls.c: remove unnecessary strdup
git-svn-id: https://svn.musicpd.org/mpd/trunk@3927 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/ls.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -155,12 +155,10 @@ int lsPlaylists(FILE * fp, char * utf8path) { if(stat(s,&st)==0) { if(S_ISREG(st.st_mode)) { if(list==NULL) list = makeList(NULL, 1); - dup = strdup(ent->d_name); dup[suff] = '\0'; if((utf8 = fsCharsetToUtf8(dup))) { insertInList(list,utf8,NULL); } - free(dup); } } } |