Code

mpdclient: clear the "connection" variable on error
authorMax Kellermann <max@duempel.org>
Sun, 13 Sep 2009 10:07:54 +0000 (12:07 +0200)
committerMax Kellermann <max@duempel.org>
Sun, 13 Sep 2009 10:07:54 +0000 (12:07 +0200)
commit74f964eff234bba4cf6f04fdf4ae31a673839176
tree454d2eb4c22a8cca9fcc731d958cf134d15a3607
parentb3ccd59c5e7f8fa1614eabeb0020502bd876fe74
mpdclient: clear the "connection" variable on error

This also adds several "connection==NULL" checks, and thus fixes a
NULL pointer dereference, which could occur when you pressed "tab" too
early, before the connection was established (Debian bug #540415).
NEWS
src/mpdclient.c