Code

mpdclient: initialize "retval" in mpdclient_update()
authorMax Kellermann <max@duempel.org>
Wed, 30 Sep 2009 14:30:08 +0000 (16:30 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 30 Sep 2009 14:30:08 +0000 (16:30 +0200)
src/mpdclient.c

index aecf4f9b4b4b2dc1ba71a18d9e9795422c49d60e..124c01827f2efeec63f0bba6ff3343f58def9e86 100644 (file)
@@ -243,7 +243,8 @@ mpdclient_update(struct mpdclient *c)
                        retval = mpdclient_playlist_update_changes(c);
                else
                        retval = mpdclient_playlist_update(c);
-       }
+       } else
+               retval = true;
 
        /* update the current song */
        if (!c->song || mpd_status_get_song_id(c->status)) {