diff options
author | Max Kellermann <max@duempel.org> | 2013-01-18 15:33:34 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-18 15:34:01 +0100 |
commit | 890151450663abd581cab56e853e8e713d822851 (patch) | |
tree | f4bf31e08d7483e0041333c6ebf69a468b48b975 /src/OtherCommands.cxx | |
parent | 21fe376d1d9ffa6064cf89faab7860d443d9f7fd (diff) |
Playlist, Song: clarify parameter encoding
Diffstat (limited to 'src/OtherCommands.cxx')
-rw-r--r-- | src/OtherCommands.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx index 7aa162b3..4909f37f 100644 --- a/src/OtherCommands.cxx +++ b/src/OtherCommands.cxx @@ -116,13 +116,13 @@ handle_lsinfo(Client *client, int argc, char *argv[]) if (strncmp(uri, "file:///", 8) == 0) { /* print information about an arbitrary local file */ - const char *path = uri + 7; + const char *path_utf8 = uri + 7; GError *error = NULL; - if (!client_allow_file(client, path, &error)) + if (!client_allow_file(client, path_utf8, &error)) return print_error(client, error); - struct song *song = song_file_load(path, NULL); + struct song *song = song_file_load(path_utf8, NULL); if (song == NULL) { command_error(client, ACK_ERROR_NO_EXIST, "No such file"); |