From 34d8243828fd076d3604c3c4dc911936bf4ba06a Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Sun, 11 Jun 2000 13:32:10 +0000 Subject: [PATCH] Paranoia zeroing --- src/pcm/pcm_mmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pcm/pcm_mmap.c b/src/pcm/pcm_mmap.c index aa3bf059..231fe0cc 100644 --- a/src/pcm/pcm_mmap.c +++ b/src/pcm/pcm_mmap.c @@ -645,6 +645,7 @@ int snd_pcm_munmap_data(snd_pcm_t *pcm, int stream) if ((err = pcm->ops->munmap_data(pcm, stream, str->mmap_data, str->mmap_data_size)) < 0) return err; free(str->channels); + str->channels = 0; str->mmap_data = 0; str->mmap_data_size = 0; return 0; -- 2.47.3