From 3efef3f45a9569a220faea62fd13baeeb03e80e9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 5 Oct 2013 15:30:37 -0400 Subject: [PATCH] fix up incorrect test for successful UUID return from jack_get_uuid_for_client_name() in jack_lsp() --- lsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp.c b/lsp.c index f39af53..0812ecc 100644 --- a/lsp.c +++ b/lsp.c @@ -27,7 +27,7 @@ printf_name2uuid (jack_client_t* client, const char* pname) snprintf(client_component, csize, "%s", pname); char *uuid = jack_get_uuid_for_client_name(client, client_component); - if (uuid && strcmp(uuid, "-1") != 0) { + if (uuid) { printf("%s%s\n", uuid, port_component ); } else { printf("%s\n",pname);