From 4740dd97bf54d67f0edef80e1b9e86c04c8ed402 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 23 May 2018 10:33:40 +0200 Subject: [PATCH] pcm: add missing flags initialization for the fallback control data Signed-off-by: Jaroslav Kysela --- src/pcm/pcm_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index a728b23b..59a24200 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -1018,7 +1018,7 @@ static int map_status_and_control_data(snd_pcm_t *pcm, bool force_fallback) snd_pcm_set_appl_ptr(pcm, &hw->mmap_control->appl_ptr, hw->fd, SNDRV_PCM_MMAP_OFFSET_CONTROL); if (hw->mmap_control_fallbacked) { - unsigned int flags; + unsigned int flags = 0; /* read appl_ptr and avail_min from kernel when device opened * with SND_PCM_APPEND flag */ -- 2.11.0