Fixes: https://github.com/alsa-project/alsa-lib/pull/363
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
snd_config_iterator_t i, inext;
unsigned int k;
int err;
+
+ long *scha = alloca(tt_ssize * sizeof(long));
+ if (scha == NULL)
+ return -ENOMEM;
+
for (k = 0; k < tt_csize * tt_ssize; ++k)
ttable[k] = 0.0;
snd_config_for_each(i, inext, tt) {
snd_config_t *jnode = snd_config_iterator_entry(j);
double value;
int ss;
- long *scha = alloca(tt_ssize * sizeof(long));
const char *id;
if (snd_config_get_id(jnode, &id) < 0)
continue;