diff --git a/liberty b/liberty index 75fc6f1..017cb1d 160000 --- a/liberty +++ b/liberty @@ -1 +1 @@ -Subproject commit 75fc6f1c374796f9e794297c3893089009b8772f +Subproject commit 017cb1d5702a32603810545cd74c1da65e35d12d 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);