From: Jaroslav Kysela Date: Sat, 29 Dec 2001 22:28:35 +0000 (+0000) Subject: Added initialization of destination X-Git-Tag: v1.0.3~514 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=5912f56e53845c88355846a960414739c6fd4088;p=alsa-lib.git Added initialization of destination --- diff --git a/src/control/setup.c b/src/control/setup.c index 88b46f60..0db9106e 100644 --- a/src/control/setup.c +++ b/src/control/setup.c @@ -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));