queue_print: hide HTTP password in the "playlist" command

I've already changed the "playlistinfo" command to hide HTTP
passwords, but forgot to do the same for the simpler "playlist"
command.  This patch changes queue_print_uris() to use the code from
song_print_uri().
This commit is contained in:
Max Kellermann 2010-07-25 13:23:02 +02:00
parent 0c5305c51f
commit 9de5bb9e23

View File

@ -61,11 +61,8 @@ queue_print_uris(struct client *client, const struct queue *queue,
assert(end <= queue_length(queue));
for (unsigned i = start; i < end; ++i) {
const struct song *song = queue_get(queue, i);
char *uri = song_get_uri(song);
client_printf(client, "%i:%s\n", i, uri);
g_free(uri);
client_printf(client, "%i:", i);
song_print_uri(client, queue_get(queue, i));
}
}