Added initialization of destination

This commit is contained in:
Jaroslav Kysela 2001-12-29 22:28:35 +00:00
parent 10f3957571
commit 5912f56e53

View file

@ -590,6 +590,7 @@ int snd_sctl_build(snd_sctl_t **sctl, snd_ctl_t *handle, snd_config_t *conf, snd
assert(sctl);
assert(handle);
assert(conf);
*sctl = NULL;
if (snd_config_get_type(conf) != SND_CONFIG_TYPE_COMPOUND)
return -EINVAL;
h = calloc(1, sizeof(*h));