From 7d3284bc9ad5031d8ef21bd6d0734b9098c4982f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 2 Oct 2009 19:57:22 +0200 Subject: [PATCH] mpdclient: don't check mpd_song_get_uri()!=NULL libmpdclient guarantees that this function always returns non-NULL. --- src/mpdclient.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mpdclient.c b/src/mpdclient.c index 1c21785..bbc8df8 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -782,10 +782,8 @@ mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl) mpd_entity_get_type(entity) == MPD_ENTITY_TYPE_SONG) { const struct mpd_song *song = mpd_entity_get_song(entity); - const char *uri = mpd_song_get_uri(song); - if (uri != NULL) - mpd_send_add(c->connection, uri); + mpd_send_add(c->connection, mpd_song_get_uri(song)); } } -- 2.30.2