Code

mpdclient: don't assign c->status twice in mpdclient_cmd_clear()
authorMax Kellermann <max@duempel.org>
Sun, 18 Oct 2009 00:27:14 +0000 (02:27 +0200)
committerMax Kellermann <max@duempel.org>
Sun, 18 Oct 2009 00:27:14 +0000 (02:27 +0200)
Forgot to delete this line when I switched to mpdclient_recv_status().

src/mpdclient.c

index 0a93bc9a4bd40a3dcda2e519b465459114a09eb3..bffbce80eebc51d2115567358e1462c040c34378 100644 (file)
@@ -338,10 +338,6 @@ mpdclient_cmd_clear(struct mpdclient *c)
        if (status == NULL)
                return false;
 
-       if (c->status != NULL)
-               mpd_status_free(c->status);
-       c->status = status;
-
        if (!mpd_response_finish(connection))
                return mpdclient_handle_error(c);