From: Max Kellermann Date: Fri, 2 Oct 2009 17:57:22 +0000 (+0200) Subject: mpdclient: don't check mpd_song_get_uri()!=NULL X-Git-Tag: release-0.16~206 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7d3284bc9ad5031d8ef21bd6d0734b9098c4982f;p=ncmpc.git mpdclient: don't check mpd_song_get_uri()!=NULL libmpdclient guarantees that this function always returns non-NULL. --- 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)); } }