mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
Slot name can't be empty. So, no need to check if it empty.
This commit is contained in:
parent
505722ac5d
commit
e21b26a56f
@ -1609,7 +1609,6 @@ slot_new(struct dev *d, struct opt *opt, char *who,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
s = d->slot + bestidx;
|
s = d->slot + bestidx;
|
||||||
if (s->name[0] != '\0')
|
|
||||||
s->vol = MIDI_MAXCTL;
|
s->vol = MIDI_MAXCTL;
|
||||||
strlcpy(s->name, name, SLOT_NAMEMAX);
|
strlcpy(s->name, name, SLOT_NAMEMAX);
|
||||||
s->serial = d->serial++;
|
s->serial = d->serial++;
|
||||||
|
Loading…
Reference in New Issue
Block a user