]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Paranoia zeroing
authorAbramo Bagnara <abramo@alsa-project.org>
Sun, 11 Jun 2000 13:32:10 +0000 (13:32 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Sun, 11 Jun 2000 13:32:10 +0000 (13:32 +0000)
src/pcm/pcm_mmap.c

index aa3bf0598d0650f20c117d823752f77a5f4836aa..231fe0cc3c215cd57ed4fc900b7e5e3eb5bd372a 100644 (file)
@@ -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;