Code

screen_client: don't update twice in screen_auth()
authorMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 18:36:06 +0000 (20:36 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 29 Sep 2009 18:36:06 +0000 (20:36 +0200)
One mpdclient_update() call is in _screen_auth(), and the second is in
screen_auth().  screen_auth() does not check whether _screen_auth()
was successful prior to that.

src/screen_client.c

index 855a1e2a125ba2df36e69ce2651677c165d3b01a..397a7cb474658b958b9a7abc9004f2cfdadff21c 100644 (file)
@@ -49,7 +49,5 @@ _screen_auth(struct mpdclient *c, gint recursion)
 gint
 screen_auth(struct mpdclient *c)
 {
-       gint ret = _screen_auth(c, 0);
-       mpdclient_update(c);
-       return ret;
+       return _screen_auth(c, 0);
 }