From 9de5bb9e23915f847b59d32d9e857c45974b01d7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 25 Jul 2010 13:23:02 +0200 Subject: 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(). --- src/queue_print.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/queue_print.c b/src/queue_print.c index abd201d9..3b49dee6 100644 --- a/src/queue_print.c +++ b/src/queue_print.c @@ -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)); } } -- cgit v1.2.3