diff --git a/src/screen_client.c b/src/screen_client.c
index 90364c0af0df2506daba2839a171beb385de7482..f864f1998498e810ea182feddbf3183344220f14 100644 (file)
--- a/src/screen_client.c
+++ b/src/screen_client.c
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2009 The Music Player Daemon Project
+ * (c) 2004-2010 The Music Player Daemon Project
* Project homepage: http://musicpd.org
*
* This program is free software; you can redistribute it and/or modify
char *password;
connection = mpdclient_get_connection(c);
+ if (connection == NULL)
+ return false;
mpd_connection_clear_error(connection);
if (recursion > 2)
assert(mpdclient_is_connected(c));
connection = mpdclient_get_connection(c);
+ if (connection == NULL)
+ return;
id = mpd_run_update(connection, path);
if (id == 0) {