aboutsummaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index b141bda4..b4f001c8 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);