summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e59398)
raw | patch | inline | side by side (parent: 6e59398)
author | Max Kellermann <max@duempel.org> | |
Tue, 29 Sep 2009 18:36:06 +0000 (20:36 +0200) | ||
committer | Max 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.
screen_auth(). screen_auth() does not check whether _screen_auth()
was successful prior to that.
src/screen_client.c | patch | blob | history |
diff --git a/src/screen_client.c b/src/screen_client.c
index 855a1e2a125ba2df36e69ce2651677c165d3b01a..397a7cb474658b958b9a7abc9004f2cfdadff21c 100644 (file)
--- a/src/screen_client.c
+++ b/src/screen_client.c
gint
screen_auth(struct mpdclient *c)
{
- gint ret = _screen_auth(c, 0);
- mpdclient_update(c);
- return ret;
+ return _screen_auth(c, 0);
}