From 890151450663abd581cab56e853e8e713d822851 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 18 Jan 2013 15:33:34 +0100 Subject: Playlist, Song: clarify parameter encoding --- src/OtherCommands.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/OtherCommands.cxx') 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"); -- cgit v1.2.3