From d59a332ef96666d2d7df71d0885f8e652dd6fc1b Mon Sep 17 00:00:00 2001
From: tsufeki <tsufeki@ymail.com>
Date: Thu, 1 Aug 2013 08:42:22 +0200
Subject: [PATCH] commmand: fix URI argument in playlistadd

---
 NEWS          | 2 ++
 src/command.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index c58c0c5b9..8ef4f8b75 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
 ver 0.17.5 (not yet released)
+* protocol:
+  - fix "playlistadd" with URI
 
 ver 0.17.4 (2013/04/08)
 * protocol:
diff --git a/src/command.c b/src/command.c
index 34ec87247..b3318c68b 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1579,7 +1579,7 @@ handle_playlistadd(struct client *client, G_GNUC_UNUSED int argc, char *argv[])
 			return COMMAND_RETURN_ERROR;
 		}
 
-		success = spl_append_uri(argv[1], playlist, &error);
+		success = spl_append_uri(uri, playlist, &error);
 	} else
 		success = addAllInToStoredPlaylist(uri, playlist, &error);