aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-03-18 03:55:41 +0000
committerEric Wong <normalperson@yhbt.net>2006-03-18 03:55:41 +0000
commit6dadabea214a46d303e2c9a4d92cb0073492821e (patch)
tree9208948008dd0c6bcb7c093db0e9232567b0d68b /src
parent69635022133488e6b19569fb59b16c4658a244eb (diff)
downloadmpd-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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index f913ff2d3..8ff396835 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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);
}
}
}