Code

mpdclient: check errorCode only if MPD_ERROR_ACK is set
authorMax Kellermann <max@duempel.org>
Sun, 21 Sep 2008 20:42:52 +0000 (22:42 +0200)
committerMax Kellermann <max@duempel.org>
Sun, 21 Sep 2008 20:42:52 +0000 (22:42 +0200)
commita6df916494891d3dd7ab2262f1c74c6db4604c0c
tree24af6b40dbb684e65025ddf2d76de2683bd914e5
parent85877791beb48d083d7dd8c60d017500cc68496d
mpdclient: check errorCode only if MPD_ERROR_ACK is set

connection->errorCode has an undefined value when connection->error is
not MPD_ERROR_ACK.  Read it only if MPD_ERROR_ACK is set, to make
valgrind happy.
src/mpdclient.c