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 <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2025-02-02 22:26:39 +01:00
parent 995e279081
commit 0bb35d4980

View file

@ -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;