From: Takashi Iwai Date: Wed, 23 Nov 2005 16:46:39 +0000 (+0000) Subject: Fix segfault of iec958 plugin with preamble X-Git-Tag: v1.0.11rc1~16 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=52372e018714f67754eb1ce771198994ac4543e7;p=alsa-lib.git Fix segfault of iec958 plugin with preamble Fix segfault of iec958 plugin with preamble (bug#1571). --- diff --git a/src/pcm/pcm_iec958.c b/src/pcm/pcm_iec958.c index 7723e7df..f8dd54bc 100644 --- a/src/pcm/pcm_iec958.c +++ b/src/pcm/pcm_iec958.c @@ -620,7 +620,7 @@ int _snd_pcm_iec958_open(snd_pcm_t **pcmp, const char *name, } if (preamble) { snd_config_iterator_t i, inext; - snd_config_for_each(i, inext, status) { + snd_config_for_each(i, inext, preamble) { long val; snd_config_t *n = snd_config_iterator_entry(i); const char *id;