mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Added initialization of destination
This commit is contained in:
parent
10f3957571
commit
5912f56e53
1 changed files with 1 additions and 0 deletions
|
|
@ -590,6 +590,7 @@ int snd_sctl_build(snd_sctl_t **sctl, snd_ctl_t *handle, snd_config_t *conf, snd
|
||||||
assert(sctl);
|
assert(sctl);
|
||||||
assert(handle);
|
assert(handle);
|
||||||
assert(conf);
|
assert(conf);
|
||||||
|
*sctl = NULL;
|
||||||
if (snd_config_get_type(conf) != SND_CONFIG_TYPE_COMPOUND)
|
if (snd_config_get_type(conf) != SND_CONFIG_TYPE_COMPOUND)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
h = calloc(1, sizeof(*h));
|
h = calloc(1, sizeof(*h));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue