mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-28 05:40:23 -04:00
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:
parent
995e279081
commit
0bb35d4980
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue