aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------liberty0
-rw-r--r--nncmpp.c2
2 files changed, 2 insertions, 0 deletions
diff --git a/liberty b/liberty
-Subproject 75fc6f1c374796f9e794297c3893089009b8772
+Subproject 017cb1d5702a32603810545cd74c1da65e35d12
diff --git a/nncmpp.c b/nncmpp.c
index 08c5499..8f17d8d 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -3785,6 +3785,8 @@ static void
search_on_changed (void)
{
struct mpd_client *c = &g.client;
+ if (c->state != MPD_CONNECTED)
+ return;
size_t len;
char *u8 = (char *) u32_to_u8 (g.editor.line, g.editor.len + 1, NULL, &len);