aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-11 02:59:16 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-11 02:59:16 +0000
commitd6a87f538d2347cd4610962a0004052c0c6ba8de (patch)
tree3bc0d5b0f93eb14d520f37607eec51fe456aafd0 /src/command.c
parent4ec3df033954d01663087011efecfca37749f965 (diff)
downloadmpd-d6a87f538d2347cd4610962a0004052c0c6ba8de.tar.gz
mpd-d6a87f538d2347cd4610962a0004052c0c6ba8de.tar.xz
mpd-d6a87f538d2347cd4610962a0004052c0c6ba8de.zip
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
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command.c b/src/command.c
index 5b3616a40..e2bf84460 100644
--- a/src/command.c
+++ b/src/command.c
@@ -486,7 +486,7 @@ int listHandleUpdate(FILE * fp, unsigned int * permission, int argArrayLength,
CommandEntry * nextCmd = NULL;
ListNode * nextNode = commandNode->nextNode;;
- if(!pathList) pathList = makeList(NULL);
+ if(!pathList) pathList = makeList(NULL, 1);
if(argArrayLength==2) insertInList(pathList,argArray[1],NULL);
else insertInList(pathList,"",NULL);
@@ -511,7 +511,7 @@ int handleUpdate(FILE * fp, unsigned int * permission, int argArrayLength,
{
if(argArrayLength==2) {
int ret;
- List * pathList = makeList(NULL);
+ List * pathList = makeList(NULL, 1);
insertInList(pathList,argArray[1],NULL);
ret = updateInit(fp,pathList);
freeList(pathList);
@@ -881,7 +881,7 @@ int handleCommands(FILE * fp, unsigned int * permission, int argArrayLength,
}
void initCommands() {
- commandList = makeList(free);
+ commandList = makeList(free, 1);
addCommand(COMMAND_PLAY ,PERMISSION_CONTROL, 0, 1,handlePlay,NULL);
addCommand(COMMAND_PLAYID ,PERMISSION_CONTROL, 0, 1,handlePlayId,NULL);