From d6a87f538d2347cd4610962a0004052c0c6ba8de Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 11 Nov 2004 02:59:16 +0000 Subject: ok, now song->url is only the filename, not the full path to the song git-svn-id: https://svn.musicpd.org/mpd/trunk@2602 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ls.c') diff --git a/src/ls.c b/src/ls.c index c0ff6e87c..1220d370c 100644 --- a/src/ls.c +++ b/src/ls.c @@ -152,7 +152,7 @@ int lsPlaylists(FILE * fp, char * utf8path) { strncpy(s+actlen,ent->d_name,maxlen); if(stat(s,&st)==0) { if(S_ISREG(st.st_mode)) { - if(list==NULL) list = makeList(NULL); + if(list==NULL) list = makeList(NULL, 1); dup = strdup(ent->d_name); dup[suff] = '\0'; if((utf8 = fsCharsetToUtf8(dup))) { -- cgit v1.2.3