aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index b141bda45..b4f001c85 100644
--- a/src/command.c
+++ b/src/command.c
@@ -448,7 +448,7 @@ static int handleAdd(struct client *client,
char *path = argv[1];
enum playlist_result result;
- if (path[0] == '/') {
+ if (path[0] == '/' && path[1] != 0) {
result = playlist_append_file(path, client_get_uid(client),
NULL);
return print_playlist_result(client, result);