aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2025-01-08 07:59:50 +0100
committerPřemysl Eric Janouch <p@janouch.name>2025-01-08 08:10:19 +0100
commit8b4300c79647bc6c9939d1a351ecfa138a4f6fb1 (patch)
tree929b61c7f1a89c1382fbac8845d633a984f213d3
parentcd3d4eb1ad8b2c2f75910071d35f8730d6f1e099 (diff)
downloadnncmpp-8b4300c79647bc6c9939d1a351ecfa138a4f6fb1.tar.gz
nncmpp-8b4300c79647bc6c9939d1a351ecfa138a4f6fb1.tar.xz
nncmpp-8b4300c79647bc6c9939d1a351ecfa138a4f6fb1.zip
Bump liberty, check the connection while searchingorigin/master
This just prevents immediate assertion failures.
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);