OSDN Git Service

Added initialization of destination
authorJaroslav Kysela <perex@perex.cz>
Sat, 29 Dec 2001 22:28:35 +0000 (22:28 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sat, 29 Dec 2001 22:28:35 +0000 (22:28 +0000)
src/control/setup.c

index 88b46f6..0db9106 100644 (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));