From 5912f56e53845c88355846a960414739c6fd4088 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 29 Dec 2001 22:28:35 +0000 Subject: [PATCH] Added initialization of destination --- src/control/setup.c | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.47.1