From: Jaroslav Kysela Date: Sun, 2 Feb 2025 21:26:39 +0000 (+0100) Subject: seq: seqmid - fix info->name is always true error X-Git-Tag: v1.2.14~29 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0bb35d4980c32dc4b434ca65d8288bb9199936e5;p=alsa-lib.git seq: seqmid - fix info->name is always true error Replate pointer check to the zero string check as it was the intention. Signed-off-by: Jaroslav Kysela --- diff --git a/src/seq/seqmid.c b/src/seq/seqmid.c index b30db407..17733ca6 100644 --- a/src/seq/seqmid.c +++ b/src/seq/seqmid.c @@ -552,7 +552,7 @@ int snd_seq_create_ump_endpoint(snd_seq_t *seq, if (!seq->ump_ep->version) seq->ump_ep->version = SND_UMP_EP_INFO_DEFAULT_VERSION; - if (info->name) { + if (info->name[0]) { err = snd_seq_set_client_name(seq, (const char *)info->name); if (err < 0) goto error_free;